DEVELOPMENT PREVIEWIn development

TypeScript

Buzz UI is written in TypeScript with rich types out of the box

Types and Props

Types
import { Button, type ThemeConfig } from '@creo-team/buzz-ui'

const themes: ThemeConfig[] = [
	{ value: 'light', label: 'Light', icon: () => null },
	{ value: 'dark', label: 'Dark', icon: () => null },
]

export default function Example() {
	return <Button variant="primary">Typed button</Button>
}

Strict Mode

We recommend enabling "strict": true in your tsconfig for the best DX