import { layerIntents } from '@fuel-ui/css';
import { Box } from '../Box';
import { Icon } from '../Icon';
import type { TagProps } from './Tag';
import { Tag } from './Tag';
import { TagCloseButton } from './TagCloseButton';
export default {
component: Tag,
title: 'UI/Tag',
argTypes: {
size: {
defaultValue: 'sm',
control: 'select',
},
intent: {
options: layerIntents,
defaultValue: 'accent',
control: 'select',
},
variant: {
defaultValue: 'solid',
control: 'select',
},
leftIcon: {
options: Icon.iconList,
control: 'select',
},
rightIcon: {
options: Icon.iconList,
control: 'select',
},
},
};
export const Sizes = (args: TagProps) => (
Label
Label
Label
);
export const Variants = (args: TagProps) => (
Label
Label
Label
);
export const Intents = (args: TagProps) => (
{layerIntents.map((intent) => (
Label
))}
);
export const WithIcon = (args: TagProps) => (
Label
Label
Label
);
export const WithClose = (args: TagProps) => (
Label
);
export const Loading = (args: TagProps) => (
Label
);
export const Disabled = (args: TagProps) => (
Label
Label
Label
);
/**
* Styles
*/
const styles = {
wrapper: {
display: 'flex',
alignItems: 'center',
gap: '$4',
},
gridList: {
display: 'grid',
gap: '$4',
gridTemplateColumns: 'repeat(6, 1fr)',
},
};