* feat(SW-2043): Added new room packages filter * fix(SW-2043): Fixed issue with not updating price when selecting pet room Approved-by: Tobias Johansson Approved-by: Matilda Landström
25 lines
547 B
TypeScript
25 lines
547 B
TypeScript
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,
|
|
className,
|
|
...props
|
|
}: ChipButtonProps) {
|
|
const classNames = variants({
|
|
variant,
|
|
})
|
|
|
|
return (
|
|
<Typography variant="Body/Supporting text (caption)/smBold">
|
|
<ButtonRAC {...props} className={[className, classNames].join(' ')}>
|
|
{children}
|
|
</ButtonRAC>
|
|
</Typography>
|
|
)
|
|
}
|