fix(LOY-128): add rounded filter chip variant
This commit is contained in:
@@ -1,24 +1,25 @@
|
||||
import { Button as ButtonRAC } from 'react-aria-components'
|
||||
|
||||
import { Typography } from '../Typography'
|
||||
import { ChipButtonProps } from './types'
|
||||
import { variants } from './variants'
|
||||
|
||||
export function ChipButton({
|
||||
children,
|
||||
variant,
|
||||
selected = false,
|
||||
size = 'Large',
|
||||
className,
|
||||
...props
|
||||
}: ChipButtonProps) {
|
||||
const classNames = variants({
|
||||
variant,
|
||||
selected,
|
||||
size,
|
||||
})
|
||||
|
||||
return (
|
||||
<Typography variant="Body/Supporting text (caption)/smBold">
|
||||
<ButtonRAC {...props} className={[className, classNames].join(' ')}>
|
||||
{children}
|
||||
</ButtonRAC>
|
||||
</Typography>
|
||||
<ButtonRAC {...props} className={[className, classNames].join(' ')}>
|
||||
{children}
|
||||
</ButtonRAC>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user