storybook-addon-grid
Version:
Column guides for your stories
36 lines (33 loc) • 748 B
TypeScript
declare module 'storybook-addon-grid' {
export type GridConfig = {
/**
* Number of columns, default: 12 max: 24
*/
columns?: number | string | undefined;
/**
* Gap between columns
*/
gap?: string | undefined;
/**
* Gutter (margin) on the left and/or right.
*/
gutter?: string | [string, string] | undefined;
/**
* maximum allowed width
*/
maxWidth?: string | undefined;
/**
* Sets the color used for the column guides, defaults to red (rgba(255, 0, 0, 0.1))
*/
color?: string | undefined;
};
export type AddonState = {
/**
* Should the column guides be on by default here?
*/
visible: boolean;
};
export type AddonParameters = {
disable?: boolean | undefined;
} & GridConfig;
}