import { MetalButton } from '@brand-studio/ui';
export default function MetalButtonDemo() {
return <MetalButton>Order the kettle</MetalButton>;
}Installation
pnpm add @brand-studio/uinpm install @brand-studio/uiyarn add @brand-studio/uibun add @brand-studio/uiInstall the peer dependencies
npm install react react-domImport the stylesheet once
import '@brand-studio/ui/styles.css';Wrap your app in a brand theme
import { BrandTheme, MetalButton } from '@brand-studio/ui'; import brand from './brand.json'; <BrandTheme palette={brand.tokens} mode="system"> {/* your app */} </BrandTheme>
Usage
import { MetalButton } from '@brand-studio/ui';<MetalButton>Order the kettle</MetalButton>Accessibility
- A native button. The sheen follows the pointer; keyboard users get the same button without it.
API Reference
| Prop | Type | Default |
|---|
Also accepts every ButtonHTMLAttributes<HTMLButtonElement> attribute.