diff --git a/src/components/switch-card.tsx b/src/components/switch-card.tsx
index c529445..834c4f5 100644
--- a/src/components/switch-card.tsx
+++ b/src/components/switch-card.tsx
@@ -71,57 +71,61 @@ export const SwitchCard = ({
if (isCollapsed) {
return (
-
-
-
-
-
-
-
-
-
- {children}
-
-
+
+
+
+
+
+
+
+
+
+
+ {children}
+
+
+
)
} else {
return (
-
+
- {icon}
-
{label}
-
+
+ {icon}
+ {label}
+
+
+ {isActive ? (
+
{children}
+ ) : null}
- {isActive ? (
-
{children}
- ) : null}
)
}
diff --git a/src/stories/components/section-spinner.stories.tsx b/src/stories/components/section-spinner.stories.tsx
new file mode 100644
index 0000000..f05a6fe
--- /dev/null
+++ b/src/stories/components/section-spinner.stories.tsx
@@ -0,0 +1,14 @@
+import { Meta, StoryObj } from '@storybook/react'
+import { SectionSpinner } from '../../components'
+
+const meta: Meta
= {
+ title: 'Components/Section Spinner',
+ component: SectionSpinner,
+}
+
+export default meta
+type Story = StoryObj
+
+export const Default: Story = {
+ args: {},
+}
diff --git a/src/stories/components/spinner.stories.tsx b/src/stories/components/spinner.stories.tsx
new file mode 100644
index 0000000..abec229
--- /dev/null
+++ b/src/stories/components/spinner.stories.tsx
@@ -0,0 +1,12 @@
+import { Meta, StoryObj } from '@storybook/react'
+import { Spinner } from '../../components'
+
+const meta: Meta = {
+ title: 'Components/Spinner',
+ component: Spinner,
+}
+
+export default meta
+type Story = StoryObj
+
+export const Default: Story = {}
diff --git a/src/stories/components/switch-card.stories.tsx b/src/stories/components/switch-card.stories.tsx
new file mode 100644
index 0000000..b1bf318
--- /dev/null
+++ b/src/stories/components/switch-card.stories.tsx
@@ -0,0 +1,67 @@
+import { Meta, StoryObj } from '@storybook/react'
+import cx from 'classnames'
+import { IconInfo, SwitchCard } from '../../components'
+
+const meta: Meta = {
+ title: 'Components/Switch Card',
+ component: SwitchCard,
+}
+
+export default meta
+type Story = StoryObj
+
+export const NotCollapsed: Story = {
+ args: {
+ icon: ,
+ label: 'Show info',
+ isCollapsed: false,
+ localStorageNamespace: 'switch-card',
+ expandedMinWidth: '200px',
+ children: (
+
+ Lorem ipsum odor amet, consectetuer adipiscing elit. Duis nascetur
+ magnis morbi laoreet; montes porta. Pulvinar nunc per accumsan sed
+ suspendisse sit sapien. Venenatis maximus inceptos taciti vestibulum
+ porta sagittis quisque ipsum erat. Risus sodales conubia leo facilisi
+ dignissim potenti senectus. Lectus feugiat ornare amet iaculis metus
+ inceptos adipiscing placerat. Vestibulum faucibus facilisis viverra
+ magna litora. Molestie lorem leo malesuada dictumst porta erat sagittis
+ ullamcorper sollicitudin. Hendrerit ante maximus tincidunt, venenatis
+ mauris molestie.
+
+ ),
+ },
+ render: (args) => (
+
+
+
+ ),
+}
+
+export const Collapsed: Story = {
+ args: {
+ icon: ,
+ label: 'Show info',
+ isCollapsed: true,
+ localStorageNamespace: 'switch-card',
+ expandedMinWidth: '200px',
+ children: (
+
+ Lorem ipsum odor amet, consectetuer adipiscing elit. Duis nascetur
+ magnis morbi laoreet; montes porta. Pulvinar nunc per accumsan sed
+ suspendisse sit sapien. Venenatis maximus inceptos taciti vestibulum
+ porta sagittis quisque ipsum erat. Risus sodales conubia leo facilisi
+ dignissim potenti senectus. Lectus feugiat ornare amet iaculis metus
+ inceptos adipiscing placerat. Vestibulum faucibus facilisis viverra
+ magna litora. Molestie lorem leo malesuada dictumst porta erat sagittis
+ ullamcorper sollicitudin. Hendrerit ante maximus tincidunt, venenatis
+ mauris molestie.
+
+ ),
+ },
+ render: (args) => (
+
+
+
+ ),
+}