Knit UI
GitHub

Playground

Loading playground…

false
Playground
<UnstyledButton
  disabled={false}
>
  Press me
</UnstyledButton>

Examples

Shadows

The shadow elevation prop, inherited from Box, across all token levels.

Loading example…

ShadowsSourceStorybook

Disabled

Disabled state — opacity is reduced and pointer events are turned off.

Loading example…

DisabledSourceStorybook

Custom Styled

Custom styled content — UnstyledButton intentionally carries no visual style so you bring your own.

Loading example…

Custom StyledSourceStorybook

With Icon

With an icon — since UnstyledButton is a Box, layout children freely.

Loading example…

With IconSourceStorybook

Grouped

Multiple unstyled buttons in a row, demonstrating composition as a toolbar.

Loading example…

GroupedSourceStorybook

Press Counter

Controlled press counter — demonstrates that onPress fires and state updates correctly.

Loading example…

Press CounterSourceStorybook

Props

PropTypeDefaultDescription
disabled systemboolean | undefinedfalseReduces opacity and disables pointer events.
shadow system"xs" | "sm" | "md" | "lg" | "xl" | "xxs" | "xxl" | undefined
theme systemThemeName | null | undefinedApplies a theme to this element
Accessibility & DOM props (2)
PropType
keyKey | null | undefined
refRef<TamaguiElement> | undefined

Plus 498 inherited style props from Box — the full Tamagui/React Native style surface, including token shorthands like p, mx, bg and c. See Tokens for the scales they accept, or the full list.