Fix/linting * fix import issues and add lint check no-extraneous-dependencies * fix use type HotelType instead of string Approved-by: Anton Gunnarsson
27 lines
533 B
TypeScript
27 lines
533 B
TypeScript
import Footnote from '../Footnote'
|
|
|
|
import { chipVariants } from './variants'
|
|
import { VariantProps } from 'class-variance-authority'
|
|
|
|
export interface ChipProps
|
|
extends React.HtmlHTMLAttributes<HTMLDivElement>,
|
|
VariantProps<typeof chipVariants> {}
|
|
|
|
export default function Chip({
|
|
children,
|
|
className,
|
|
size,
|
|
variant,
|
|
}: ChipProps) {
|
|
const classNames = chipVariants({
|
|
className,
|
|
size,
|
|
variant,
|
|
})
|
|
return (
|
|
<Footnote asChild>
|
|
<div className={classNames}>{children}</div>
|
|
</Footnote>
|
|
)
|
|
}
|