Files
liqa/client/.storybook/stories/ThemeSwitcher.stories.tsx
ars9 aefa1db2bd feat(client): add ThemeSwitcher and relocate stories to .storybook/
- add lucide-react for Sun/Moon icons
- add useTheme hook persisting choice to localStorage with prefers-color-scheme fallback
- add ThemeSwitcher button component wired into SidePanel header
- add blocking inline script to index.html to prevent flash-of-wrong-theme
- move all *.stories.tsx from src/ into .storybook/stories/ and update imports
- update main.ts stories glob to .storybook/stories/**
2026-04-09 09:56:59 +03:00

14 lines
400 B
TypeScript

import type { Meta, StoryObj } from '@storybook/react-vite';
import { ThemeSwitcher } from '../../src/ui/ThemeSwitcher/ThemeSwitcher';
const meta: Meta<typeof ThemeSwitcher> = {
title: 'UI/ThemeSwitcher',
component: ThemeSwitcher,
parameters: { layout: 'centered' },
tags: ['autodocs'],
};
export default meta;
type Story = StoryObj<typeof ThemeSwitcher>;
export const Default: Story = {};