Carnation is now in early alpha. Read more

Docs
Button

Button

<c.button onPress={signIn}>
  <c.span>Sign in</c.span>
</c.button>

The <c.button> component performs an action when pressed by the user.

API Reference

PropTypeDefaultDescription
childrenReactNode | ((state: PressableState) => ReactNode)The rendered children node. Pass a function to render based on the pressed state.
disabledbooleanfalseMakes the element not mutable or focusable.
onPress(evt: any) => voidEvent handler for the press event.