Skip to content

Commit

Permalink
Match other panel components descriptions to JSDocs
Browse files Browse the repository at this point in the history
  • Loading branch information
brookewp committed Feb 18, 2023
1 parent 45738b7 commit 96b518a
Showing 1 changed file with 26 additions and 12 deletions.
38 changes: 26 additions & 12 deletions packages/components/src/panel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,23 @@ const MyPanel = () => (

##### Props

###### className
###### header:`string`

The class that will be added with `components-panel`. If no `className` is passed only `components-panel__body` and `is-opened` is used.
The text that will be rendered as the title of the panel. Text will be rendered inside an
`<h2>` tag.

- Type: `String`
- Required: No

###### header
###### className: `string`

The CSS class to apply to the wrapper element.

- Required: No

###### children: `React.ReactNode`

Title of the `Panel`. Text will be rendered inside an `<h2>` tag.
The content to display within the panel row.

- Type: `String`
- Required: No

---
Expand Down Expand Up @@ -144,7 +149,6 @@ Whether or not the panel will start open.
The content to display in the `PanelBody`.If a function is provided for this prop, it will
receive an object with the `opened` prop as an argument.

- Type: `React.ReactNode | Function`
- Required: No

###### buttonProps: `WordPressComponentProps<Omit< ButtonAsButtonProps, 'icon' >, 'button', false>`
Expand All @@ -170,11 +174,16 @@ components are stacked in a scrollable container.

##### Props

###### className
###### className: `string`

The CSS class to apply to the wrapper element.

- Required: No

###### children: `React.ReactNode`

The class that will be added with `components-panel__row`. to the classes of the wrapper div. If no `className` is passed only `components-panel__row` is used.
The content to display within the panel row.

- Type: `String`
- Required: No

##### Ref
Expand All @@ -191,11 +200,16 @@ PanelRow accepts a forwarded ref that will be added to the wrapper div. Usage:

##### Props

###### label
###### label: `string`

The text that will be rendered as the title of the `Panel`. Will be rendered in an `<h2>` tag.

- Type: `String`
- Required: No

###### children: `React.ReactNode`

The content to display within the panel row.

- Required: No

## Related components
Expand Down

0 comments on commit 96b518a

Please sign in to comment.