diff --git a/packages/fuselage/src/components/ToggleSwitch/ToggleSwitch.stories.tsx b/packages/fuselage/src/components/ToggleSwitch/ToggleSwitch.stories.tsx
index cffbefe10e..3624f3349c 100644
--- a/packages/fuselage/src/components/ToggleSwitch/ToggleSwitch.stories.tsx
+++ b/packages/fuselage/src/components/ToggleSwitch/ToggleSwitch.stories.tsx
@@ -2,26 +2,19 @@ import { action } from '@storybook/addon-actions';
import type { ComponentStory, ComponentMeta } from '@storybook/react';
import React from 'react';
-import { ToggleSwitch, Label } from '../..';
-import { DECORATOR_ID, DECORATOR_LABEL } from '../../../.storybook/helpers';
+import { ToggleSwitch } from '../..';
+import {
+ DECORATOR_LABEL,
+ PropsVariationSection,
+} from '../../../.storybook/helpers';
export default {
title: 'Inputs/ToggleSwitch',
component: ToggleSwitch,
- decorators: [
- (Story) => (
- <>
-
-
- >
- ),
- ],
} as ComponentMeta;
const Template: ComponentStory = (args) => (
-
+
);
export const Default: ComponentStory = Template.bind({});
@@ -39,3 +32,21 @@ export const Disabled: ComponentStory = Template.bind({});
Disabled.args = {
disabled: true,
};
+
+export const States: ComponentStory = () => (
+
+);
diff --git a/packages/fuselage/src/components/ToggleSwitch/ToggleSwitch.tsx b/packages/fuselage/src/components/ToggleSwitch/ToggleSwitch.tsx
index 624f7b7382..0eefefb780 100644
--- a/packages/fuselage/src/components/ToggleSwitch/ToggleSwitch.tsx
+++ b/packages/fuselage/src/components/ToggleSwitch/ToggleSwitch.tsx
@@ -5,11 +5,14 @@ import Box from '../Box';
import { Label } from '../Label';
export const ToggleSwitch = forwardRef(function ToggleSwitch(
- props: ComponentProps & AllHTMLAttributes,
+ {
+ className,
+ ...props
+ }: ComponentProps & AllHTMLAttributes,
ref: Ref
) {
return (
-
+
-