Button

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.

Variant
Size

Variants

Seven styles covering standard actions plus sharp Shimokitazawa brutalist and flyer poster slabs.

Sizes

Proportional button scales including a square icon-only size.

Interactive & Icons

Pair with Lucide icons, stateful click handlers, and accessible disabled styling.

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 Started
7 </Button>
8 );
9}

API Reference

Props accepted by this component.

PropTypeDefaultDescription
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.
asChildbooleanfalseRenders the child element via Radix Slot while forwarding button styles and props.
disabledbooleanfalseDisables pointer interactions and reduces opacity.