Skip to content

Commit

Permalink
docs(panel): updates React docs for Panel
Browse files Browse the repository at this point in the history
* fix(panel): moves items into variables to fix storybook looping issue

* docs(panel): updates Panel docs for React

* docs(panel): removes note for divider label and adds periods to prop descriptions

* docs(panel): refactors stories and adds canvas control support

* docs(panel): adds link to grid templates and updates text for panel row
  • Loading branch information
anechol authored and kajabi-bot committed Nov 13, 2023
1 parent 3de0e20 commit 978fef4
Show file tree
Hide file tree
Showing 4 changed files with 394 additions and 436 deletions.
2 changes: 1 addition & 1 deletion docs/app/views/examples/components/panel/_preview.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Ut elementum id leo ac fringilla.

<h3>Body</h3>

There are a few for the panel body container.
There are a few options for the panel body container.

<h4>Panel Block</h4>

Expand Down
6 changes: 6 additions & 0 deletions packages/sage-react/lib/Panel/Panel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,16 @@ Panel.defaultProps = {
};

Panel.propTypes = {
/** Renders any content passed within. */
children: PropTypes.node,
/** CSS class that will be applied to the outermost container. */
className: PropTypes.string,
/** Removes padding on both top and bottom of the Panel. */
clearPaddingBoth: PropTypes.bool,
/** Removes padding on the bottom of the Panel. */
clearPaddingBottom: PropTypes.bool,
/** Removes padding on the top of the Panel. */
clearPaddingTop: PropTypes.bool,
/** Setting this to true will display a loading spinner within the Panel. */
loading: PropTypes.bool,
};
Loading

0 comments on commit 978fef4

Please sign in to comment.