Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
docs(Stack): Fix propType comments
Browse files Browse the repository at this point in the history
  • Loading branch information
diondiondion committed Jun 25, 2020
1 parent d31ceab commit f7ef50e
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/Stack/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,27 @@ Stack.defaultProps = {
};

Stack.propTypes = {
/** Control the spacing between Stack items. Can be an array
* of responsive values when used alongside the `breakpoints` prop */
/**
* Control the spacing between Stack items. Can be an array
* of responsive values when used alongside the `breakpoints` prop
*/
spacing: PropTypes.oneOfType([
PropTypes.string,
PropTypes.number,
PropTypes.array,
]),
/** Breakpoints to use when responsive spacing values are provided */
/**
* Breakpoints to use when responsive spacing values are provided
*/
breakpoints: PropTypes.oneOfType([
PropTypes.string,
PropTypes.number,
PropTypes.array,
]),
/** Control the HTML elements to be used for the Stack item.
* Defaults to `div`s, choose `default` to use `ul` and `li` */
/**
* Control the HTML elements to be used for the Stack item.
* Defaults to `div`, choose `list` to use `ul` and `li`
*/
as: PropTypes.oneOf(['list', 'default']),
};

Expand Down

0 comments on commit f7ef50e

Please sign in to comment.