Files
web/packages/design-system/lib/components/Button/Button.tsx
Michael Zetterberg 56973888c9 feat(SW-375): new tokens
new asset generation logic

BREAKING CHANGE: New tokens.
2025-03-07 07:24:37 +00:00

30 lines
432 B
TypeScript

'use client'
import { Button as ButtonRAC } from 'react-aria-components'
import { variants } from './variants'
import type { ButtonProps } from './types'
export function Button({
variant,
color,
size,
typography,
className,
...props
}: ButtonProps) {
const classNames = variants({
variant,
color,
size,
typography,
className,
})
return <ButtonRAC {...props} className={classNames} />
}