import type { Meta, Story } from '@storybook/react'; import React, { useState } from 'react'; import Chip from './Chip.component'; import { IChip } from './Chip.interface'; import { colors } from '../../../styles/variables'; export default { title: 'Backlog/Chip', component: Chip, argTypes: {}, } as Meta; interface ChipOnClickProps { children: React.ReactNode; disabled?: boolean; } const ChipOnClick: React.FC = ({ children, disabled = false }) => { const [isSelected, setIsSelected] = useState(false); const handleClick = () => setIsSelected(!isSelected); return ( {children} ); }; const Template: Story> = (args) => (
Blue Gray Pink Gold Green Green
); export const Simple = Template.bind({}); Simple.args = {};