fix(SW-3691): Setup one prettier config for whole repo * Setup prettierrc in root and remove other configs Approved-by: Joakim Jäderberg Approved-by: Linus Flood
26 lines
477 B
TypeScript
26 lines
477 B
TypeScript
import { Button as ButtonRAC } from "react-aria-components"
|
|
|
|
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 (
|
|
<ButtonRAC {...props} className={[className, classNames].join(" ")}>
|
|
{children}
|
|
</ButtonRAC>
|
|
)
|
|
}
|