import { Meta, StoryObj } from '@storybook/react-vite'; import { Switch } from "."; import { SwitchProps } from "@radix-ui/react-switch"; import { HelperText } from "../HelperText"; const meta = { title: "Switch", render: (args: any) => { const { disabled } = args; return ( Teste ) }, parameters: { layout: "centered", docs: { description: { component: "Um controle que permite ao usuário ligar ou desligar opções apresentadas.", }, } }, args: { disabled: false, }, } satisfies Meta<{}>; export default meta; type Story = StoryObj; export const DefaultSwitch: Story = { name: "Switch padrão", args: { disabled: false, }, render: (args: any) => { const { disabled } = args; return ( Teste ) }, }; export const SwitchWithoutLabel: Story = { name: "Switch", args: {}, render: () => ( ), }; export const SwitchWithHelperText: Story = { name: "Switch com texto auxiliar", args: {}, parameters: { docs: { description: { story: "Aplicado para adicionar algum um texto de apoio à opção.", }, } }, render: () => ( O Brasil é caramelo Texto auxiliar ao Switch ), };