Skip to content

Commit

Permalink
fix: various layout fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Apr 1, 2020
1 parent 5cafc0c commit 1a8ff2a
Show file tree
Hide file tree
Showing 13 changed files with 281 additions and 236 deletions.
28 changes: 14 additions & 14 deletions core/loader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,20 +112,20 @@ _defined in [@component-controls/specification/src/stories.ts](https://github.co

### properties

| Name | Type | Description |
| --------------- | ------------------------------------------------------ | ------------------------------------------------------------------------------------------- |
| `arguments` | [StoryArguments](#storyarguments) | arguments pass to a CSF story eg \`export const story = props => <Story {...props} />;\` |
| `component` | string \| object | id for component associated with the story |
| `controls` | [ComponentControls](#componentcontrols) | object of key/value pairs specifying the controls for the story |
| `id` | string | csf id of the story |
| `kind` | string | title of the file/group of stories |
| `loc` | [CodeLocation](#codelocation) | location in the source file of the story definition |
| `name*` | string | name of the Story. |
| `parameters` | [StoryParameters](#storyparameters) | configuration parameters passed to the story - either CSF or MDX |
| `renderFn` | **function** (`controls`\*: \[key: string]: any): any; | render function for the story |
| `source` | string | the source code of the story, extracted byt the AST instrumenting loaders |
| `subcomponents` | \[key: string]: string \| object | multiple components option |
| `subtitle` | string | optional story subtitle property |
| Name | Type | Description |
| --------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| `arguments` | [StoryArguments](#storyarguments) | arguments pass to a CSF story eg \`export const story = props => <Story {...props} />;\` |
| `component` | string \| object | id for component associated with the story |
| `controls` | [ComponentControls](#componentcontrols) | object of key/value pairs specifying the controls for the story |
| `id` | string | csf id of the story |
| `kind` | string | title of the file/group of stories |
| `loc` | [CodeLocation](#codelocation) | location in the source file of the story definition |
| `name*` | string | name of the Story. |
| `parameters` | [StoryParameters](#storyparameters) | configuration parameters passed to the story - either CSF or MDX |
| `renderFn` | **function** (`controlValues`\*: \[key: string]: any, `context`: any): any; | render function for the story |
| `source` | string | the source code of the story, extracted byt the AST instrumenting loaders |
| `subcomponents` | \[key: string]: string \| object | multiple components option |
| `subtitle` | string | optional story subtitle property |

## StoryParameters

Expand Down
28 changes: 14 additions & 14 deletions core/specification/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,20 +158,20 @@ _defined in [@component-controls/specification/src/stories.ts](https://github.co

### properties

| Name | Type | Description |
| --------------- | ------------------------------------------------------ | ------------------------------------------------------------------------------------------- |
| `arguments` | [StoryArguments](#storyarguments) | arguments pass to a CSF story eg \`export const story = props => <Story {...props} />;\` |
| `component` | string \| object | id for component associated with the story |
| `controls` | [ComponentControls](#componentcontrols) | object of key/value pairs specifying the controls for the story |
| `id` | string | csf id of the story |
| `kind` | string | title of the file/group of stories |
| `loc` | [CodeLocation](#codelocation) | location in the source file of the story definition |
| `name*` | string | name of the Story. |
| `parameters` | [StoryParameters](#storyparameters) | configuration parameters passed to the story - either CSF or MDX |
| `renderFn` | **function** (`controls`\*: \[key: string]: any): any; | render function for the story |
| `source` | string | the source code of the story, extracted byt the AST instrumenting loaders |
| `subcomponents` | \[key: string]: string \| object | multiple components option |
| `subtitle` | string | optional story subtitle property |
| Name | Type | Description |
| --------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| `arguments` | [StoryArguments](#storyarguments) | arguments pass to a CSF story eg \`export const story = props => <Story {...props} />;\` |
| `component` | string \| object | id for component associated with the story |
| `controls` | [ComponentControls](#componentcontrols) | object of key/value pairs specifying the controls for the story |
| `id` | string | csf id of the story |
| `kind` | string | title of the file/group of stories |
| `loc` | [CodeLocation](#codelocation) | location in the source file of the story definition |
| `name*` | string | name of the Story. |
| `parameters` | [StoryParameters](#storyparameters) | configuration parameters passed to the story - either CSF or MDX |
| `renderFn` | **function** (`controlValues`\*: \[key: string]: any, `context`: any): any; | render function for the story |
| `source` | string | the source code of the story, extracted byt the AST instrumenting loaders |
| `subcomponents` | \[key: string]: string \| object | multiple components option |
| `subtitle` | string | optional story subtitle property |

## StoryArgument

Expand Down
2 changes: 1 addition & 1 deletion examples/storybook-5/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const DocsPage = () => {
</Playground>
<ControlsTable id="." />
<PropsTable of="." />
<Stories />
<Stories dark={true}/>
</BlockContextProvider>
</ThemeProvider>
);
Expand Down
Loading

0 comments on commit 1a8ff2a

Please sign in to comment.