Spaces:
Sleeping
Sleeping
File size: 538 Bytes
abb7588 1f931d5 abb7588 1f931d5 f80b091 1f931d5 f80b091 1f931d5 abb7588 dfa7532 1f931d5 cfb938a dfa7532 f80b091 92f037b f80b091 cfb938a f80b091 1f931d5 f80b091 abb7588 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
import { cn } from '@/lib/utils';
import React from 'react';
type ChipProps = {
label?: string;
value?: string;
className?: string;
} & React.ComponentProps<'div'>;
const Chip: React.FC<ChipProps> = ({
value,
className,
children,
...props
}) => {
return (
<div
className={cn(
'inline-flex items-center rounded-full text-xs mr-2 bg-gray-100 text-gray-500 px-2 py-1',
className,
)}
{...props}
>
<span>{value}</span>
{children}
</div>
);
};
export default Chip;
|