import type { Meta, StoryObj } from '@storybook/nextjs' import { useState } from 'react' import { RiSparklingFill, RiTerminalBoxLine } from '@remixicon/react' import TabSliderNew from '.' const OPTIONS = [ { value: 'visual', text: 'Visual builder', icon: }, { value: 'code', text: 'Code', icon: }, ] const TabSliderNewDemo = ({ initialValue = 'visual', }: { initialValue?: string }) => { const [value, setValue] = useState(initialValue) return (
Pill tabs
) } const meta = { title: 'Base/Navigation/TabSliderNew', component: TabSliderNewDemo, parameters: { layout: 'centered', docs: { description: { component: 'Rounded pill tabs suited for switching between editors. Icons illustrate mixed text/icon options.', }, }, }, argTypes: { initialValue: { control: 'radio', options: OPTIONS.map(option => option.value), }, }, args: { initialValue: 'visual', }, tags: ['autodocs'], } satisfies Meta export default meta type Story = StoryObj export const Playground: Story = {}