forked from maraisr/storybook-addon-grid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
46 lines (43 loc) · 894 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
* @internal
*/
export interface 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;
}
/**
* @internal
*/
export type GridParameters = {
/**
* Enable or Disable the guides from fading in or out when toggling the state
*/
animation?: boolean | undefined;
} & GridConfig;
export type AddonParameters = {
disable?: boolean | undefined;
} & GridParameters;
export type AddonState = {
/**
* Should the column guides be on by default here?
*/
visible: boolean;
};