react98

Button

A raised Windows 98 button with active, focus, disabled, and asChild states.

Preview

button.exe

Installation

pnpm dlx shadcn@latest add https://react98-ui.vercel.app/r/button.json
npx shadcn@latest add https://react98-ui.vercel.app/r/button.json
yarn dlx shadcn@latest add https://react98-ui.vercel.app/r/button.json
bunx shadcn@latest add https://react98-ui.vercel.app/r/button.json

Usage

import { Button } from "@/components/ui/98/button";

export function Example() {
  return <Button>OK</Button>;
}

Props

PropTypeDefaultDescription
asChildbooleanfalseRender as the child element via Slot.
...ButtonHTMLAttributes<...>N/AAll native button attributes pass through.

On this page