import type { Meta, StoryObj } from '@storybook/nextjs'
import { useState } from 'react'
import TabSliderPlain from '.'
const OPTIONS = [
{ value: 'analytics', text: 'Analytics' },
{ value: 'activity', text: 'Recent activity' },
{ value: 'alerts', text: 'Alerts' },
]
const TabSliderPlainDemo = ({
initialValue = 'analytics',
}: {
initialValue?: string
}) => {
const [value, setValue] = useState(initialValue)
return (
)
}
const meta = {
title: 'Base/Navigation/TabSliderPlain',
component: TabSliderPlainDemo,
parameters: {
layout: 'centered',
docs: {
description: {
component: 'Underline-style navigation commonly used in dashboards. Toggle between three sections.',
},
},
},
argTypes: {
initialValue: {
control: 'radio',
options: OPTIONS.map(option => option.value),
},
},
args: {
initialValue: 'analytics',
},
tags: ['autodocs'],
} satisfies Meta
export default meta
type Story = StoryObj
export const Playground: Story = {}