UNPKG

@hmlr/govuk-react-components-library

Version:

These are common component use for React applications based on GDS and govuk-frontend

38 lines (37 loc) 1 kB
import type { ArgTypes, Tag } from "@storybook/csf"; type AnyJson = boolean | number | string | null | Array<AnyJson> | JsonMap | React.ReactNode | undefined; interface JsonMap { [key: string]: AnyJson; } interface AnnotationsConfig { parameters?: JsonMap; args?: JsonMap; argTypes?: ArgTypes; tags?: Tag[]; } export interface MetaConfig extends AnnotationsConfig { title?: string; } export interface StoryConfig extends AnnotationsConfig { name?: string; } export type StoryConfigs = Record<string, StoryConfig>; export interface DynamicConfig { baseCsf: string; storiesCsf?: string; stories?: () => Promise<StoryConfigs> | StoryConfigs; } export interface ComponentFixture { name: string; options?: object; hidden?: boolean; description?: string; previewLayoutModifiers?: unknown[]; screenshot?: boolean; html?: string; } export interface ComponentFixtureRoot { component: string; fixtures: ComponentFixture[]; } export {};