Button
A raised Windows 98 button with active, focus, disabled, and asChild states.
Preview
Installation
pnpm dlx shadcn@latest add https://react98-ui.vercel.app/r/button.jsonnpx shadcn@latest add https://react98-ui.vercel.app/r/button.jsonyarn dlx shadcn@latest add https://react98-ui.vercel.app/r/button.jsonbunx shadcn@latest add https://react98-ui.vercel.app/r/button.jsonUsage
import { Button } from "@/components/ui/98/button";
export function Example() {
return <Button>OK</Button>;
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
asChild | boolean | false | Render as the child element via Slot. |
... | ButtonHTMLAttributes<...> | N/A | All native button attributes pass through. |