Skip to content

Button

Pressable button with variant + size styles via tailwind-variants slots.

Terminal window
npx github:truongnat/rnui#cli add button

or directly via the shadcn CLI:

Terminal window
npx shadcn add https://<registry-base>/r/nativewind/button.json # or /uniwind/

npm dependencies installed automatically: tailwind-variants

<Button onPress={() => {}}>Primary</Button>
<Button variant="secondary" size="sm">Secondary</Button>
<Button variant="outline">Outline</Button>
<Button variant="destructive">Delete</Button>
  • components/ui/button.tsx

Installs together with: utils, theme