import { AiIcon, FrameIcon, TocIcon, TodayIcon } from '@blocksuite/icons/rc'; import { cssVar } from '@toeverything/theme'; import { useState } from 'react'; import { ResizePanel } from '../resize-panel/resize-panel'; import { RadioGroup } from './radio'; import type { RadioItem } from './types'; export default { title: 'UI/RadioGroup', }; export const FixedWidth = () => { const [value, setValue] = useState('Radio 1'); return ( <>

width:  300px

); }; export const AutoWidth = () => { const [value, setValue] = useState('Radio 1'); return ( ); }; export const DynamicWidth = () => { const [value, setValue] = useState('Radio 1'); return ( ); }; export const IconTabs = () => { const [value, setValue] = useState('ai'); const items: RadioItem[] = [ { value: 'ai', label: , style: { width: 28 }, testId: 'ai-radio', }, { value: 'calendar', label: , style: { width: 28 }, testId: 'calendar-radio', }, { value: 'outline', label: , style: { width: 28 }, testId: 'outline-radio', }, { value: 'frame', label: , style: { width: 28 }, testId: 'frame-radio', }, ]; return ( ); }; export const CustomizeActiveStyle = () => { const [value, setValue] = useState('ai'); const items: RadioItem[] = [ { value: 'ai', label: , style: { width: 28 }, testId: 'ai-radio', }, { value: 'calendar', label: , style: { width: 28 }, testId: 'calendar-radio', }, { value: 'outline', label: , style: { width: 28 }, testId: 'outline-radio', }, { value: 'frame', label: , style: { width: 28 }, testId: 'frame-radio', }, ]; return ( ); };