Actions
Button
Available forNativeWeb
variant default/secondary/outline/ghost/link/destructive · size sm/default/lg/icon · children are <Text>/<Icon>
Usage
Children are Text and Icon, never a bare string. One primary button per screen.
API
<Button variant? size? disabled?><Text>…</Text></Button>Get it
Already in every copy of the native kit:
import { Button } from '@/components/ui/button';Details
- Exports
Button- Packages
- class-variance-authority@^0.7.1
- Installs with
- @kit-native/lib-utils, @kit-native/text
- Also searched as
- cta, primary, secondary, outline, ghost, link, destructive, loading
- Registry JSON
- /r/native/button.json
Usage
One primary (default) button per view; everything else is secondary, outline or ghost. Wrap a Link with asChild instead of nesting.
API
<Button variant? size? asChild?>Label</Button>Get it
Already in every copy of the web kit:
import { Button, buttonVariants } from '@/components/ui/button';Details
- Exports
Button,buttonVariants- Packages
- class-variance-authority@^0.7.1, cn@^0.4.0, radix-ui@^1.7.0
- Also searched as
- cta, link button, icon button, destructive
- Registry JSON
- /r/web/button.json
Agents: the whole registry is at /llms.txt.