mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 05:19:49 +00:00
feat: added custom design for tags
This commit is contained in:
@@ -9,6 +9,7 @@ type Props = {
|
||||
className?: string;
|
||||
onClose?: () => void;
|
||||
color?: string;
|
||||
styles?: Record<string, string>
|
||||
isDisabled?: boolean;
|
||||
} & VariantProps<typeof tagVariants>;
|
||||
|
||||
@@ -35,11 +36,12 @@ export const Tag = ({
|
||||
color,
|
||||
isDisabled,
|
||||
size = "sm",
|
||||
onClose
|
||||
onClose,
|
||||
styles = {}
|
||||
}: Props) => (
|
||||
<div
|
||||
className={twMerge(tagVariants({ colorSchema, className, size }))}
|
||||
style={{ backgroundColor: color }}
|
||||
style={{ backgroundColor: color, ...styles }}
|
||||
>
|
||||
{children}
|
||||
{onClose && (
|
||||
|
||||
Reference in New Issue
Block a user