import * as React from 'react'; import type { Meta } from '@storybook/react'; import { Button } from '@tesseract-design/web-base'; import { RadioButton as Component, RadioButtonProps as Props } from '.'; const LENGTH = 3 as const; const meta: Meta = { component: Component, argTypes: { badge: { control: { type: 'text', }, }, variant: { control: { type: 'select' }, options: Button.AVAILABLE_VARIANTS, }, size: { control: { type: 'select' }, options: Button.AVAILABLE_SIZES, }, subtext: { control: { type: 'text' }, }, onChange: { table: { disable: true, }, action: 'changed', }, }, args: { ...(Component.defaultProps ?? {}), }, }; export const RadioButton = (args: Omit) => ( <> {Array.from({ length: LENGTH }).map((_, i) => ( {Component.displayName} {i + 1} ))} ); export default meta;