woocommerce/plugins/woocommerce-blocks/packages/components/chip/stories/removable-chip.stories.tsx

34 lines
708 B
TypeScript

/**
* External dependencies
*/
import type { Story, Meta } from '@storybook/react';
/**
* Internal dependencies
*/
import { RemovableChip, RemovableChipProps } from '../removable-chip';
const availableElements = [ 'li', 'div', 'span' ];
export default {
title: 'External Components/RemovableChip',
component: RemovableChip,
argTypes: {
element: {
control: 'radio',
options: availableElements,
},
},
} as Meta< RemovableChipProps >;
const Template: Story< RemovableChipProps > = ( args ) => (
<RemovableChip { ...args } />
);
export const Default = Template.bind( {} );
Default.args = {
element: 'li',
text: 'Take me to the casino',
screenReaderText: "I'm a removable chip, me",
};