Skip to content

Icon Button

Square icon-only button with variants.

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

or directly via the shadcn CLI:

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

npm dependencies installed automatically: tailwind-variants

components/ui/icon-button.tsx
// See the source file for the API:
  • components/ui/icon-button.tsx

Installs together with: utils, theme