Button
Interactive push buttons with five semantic variants, proportional sizes, and asChild polymorphic composition.
Interactive Playground
Configure props below — switch to the Code tab to inspect the live JSX.
button-playground.tsx
Variant
Size
Variants
Seven styles covering standard actions plus sharp Shimokitazawa brutalist and flyer poster slabs.
button-variants.tsx
Sizes
Proportional button scales including a square icon-only size.
button-sizes.tsx
Interactive & Icons
Pair with Lucide icons, stateful click handlers, and accessible disabled styling.
button-states.tsx
Quick Import
Import directly from the root package entry.
Example.tsxtsx
1import { Button } from "@rekodo/react";2
3export function Example() {4 return (5 <Button variant="default" size="default">6 Get Started7 </Button>8 );9}API Reference
Props accepted by this component.
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "default" | "secondary" | "outline" | "ghost" | "danger" | "brutalist" | "poster" | "default" | Visual style variant of the button, including sharp brutalist and flyer poster styles. |
| size | "sm" | "default" | "lg" | "icon" | "default" | Height, padding, and typography scale. |
| asChild | boolean | false | Renders the child element via Radix Slot while forwarding button styles and props. |
| disabled | boolean | false | Disables pointer interactions and reduces opacity. |