03e84c1f28
Storybook (SvelteKit-Framework, Tailwind v4, MSW, Translation-Decorator): Stories für Atoms/Molecules/Organisms + alle CMS-Blocks. Button-Atom: 5 .btn-*-Varianten (primary/secondary/tertiary/outline/warning), class-Merge-Prop, href→<a>, Loading-Spinner neben Label, rounded-md/font-medium. Alle rohen .btn-*- und Hand-Style-Buttons app-weit aufs Atom migriert. SectionHeader-Molecule (kicker/number/title/subtitle/action) + Integration in 7 CMS-Blocks (post_overview, organisations, organisations_map, searchable_text, image_gallery, youtube_video_gallery, files) via neuem section_header-Schema. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
15 lines
405 B
Svelte
15 lines
405 B
Svelte
<script module lang="ts">
|
|
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
import Badge from './Badge.svelte';
|
|
|
|
const { Story } = defineMeta({
|
|
title: 'Molecules/Badge',
|
|
component: Badge,
|
|
tags: ['autodocs'],
|
|
});
|
|
</script>
|
|
|
|
<Story name="Standard">Neu</Story>
|
|
<Story name="Wald" args={{ color: 'wald' }}>Aktiv</Story>
|
|
<Story name="Fire" args={{ color: 'fire' }}>Dringend</Story>
|