@storybook/addon-links
Version:
Link stories together to build demos and prototypes with your UI components
14 lines (13 loc) • 553 B
TypeScript
import type { StoryId, StoryName, ComponentTitle } from '@storybook/csf';
interface ParamsId {
storyId: StoryId;
}
interface ParamsCombo {
kind?: ComponentTitle;
story?: StoryName;
}
export declare const navigate: (params: ParamsId | ParamsCombo) => void;
export declare const hrefTo: (title: ComponentTitle, name: StoryName) => Promise<string>;
export declare const linkTo: (idOrTitle: string, nameInput?: string | ((...args: any[]) => string)) => (...args: any[]) => void;
export declare const withLinks: (...args: any) => any;
export {};