@storybook/addon-links
Version:
Link stories together to build demos and prototypes with your UI components
21 lines (17 loc) • 831 B
TypeScript
import * as core_dist_types from 'storybook/internal/types';
import { ComponentTitle, StoryName, StoryId, StoryKind } from 'storybook/internal/types';
interface ParamsId {
storyId: StoryId;
}
interface ParamsCombo {
kind?: StoryKind;
title?: ComponentTitle;
story?: StoryName;
name?: StoryName;
}
declare const navigate: (params: ParamsId | ParamsCombo) => void;
declare const hrefTo: (title: ComponentTitle, name: StoryName) => Promise<string>;
declare const linkTo: (idOrTitle: string | ((...args: any[]) => string), nameInput?: string | ((...args: any[]) => string)) => (...args: any[]) => void;
declare const withLinks: (...args: any) => any;
declare const _default: () => core_dist_types.ProjectAnnotations<core_dist_types.Renderer>;
export { _default as default, hrefTo, linkTo, navigate, withLinks };