Skip to content

Commit

Permalink
Merge pull request #18966 from reech-florian/patch-2
Browse files Browse the repository at this point in the history
chore(docs): fix mistakes in ArgsTable customizing table
  • Loading branch information
jonniebigodes authored and shilman committed Aug 22, 2022
1 parent 5701756 commit f00e484
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/writing-docs/doc-block-argstable.md
Expand Up @@ -73,8 +73,8 @@ Below is an abridged table and example featuring the available options.

| Field | Description |
|--------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `name` | The name of the property. <br/> `argTypes: { label: {} }` |
| `type.name` | Sets a type for the property. <br/> `argTypes: { label: { name: 'number' } }` |
| `name` | The name of the property. <br/> `argTypes: { label: { name: 'Something' } }` |
| `type.name` | Sets a type for the property. <br/> `argTypes: { label: { type: { name: 'number' } } }` |
| `type.required` | Sets the property as optional or required. <br/> `argTypes: { label: { type: { required: true } }` |
| `description` | Sets a Markdown description for the property. <br/> `argTypes: { label: { description: 'Something' } }` |
| `table.type.summary` | Provide a short version of the type. <br/> `argTypes: { label: { table: { type: { summary: 'a short summary' } }}}` |
Expand Down

0 comments on commit f00e484

Please sign in to comment.