Skip to content

Commit

Permalink
docs(dividers): Add prop descriptions for HairlineDivider
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanoglesby08 committed Sep 27, 2017
1 parent 248efcd commit 2f3a6ab
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/components/Dividers/HairlineDivider/HairlineDivider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,20 @@ const getClassName = (vertical, gradient) => {
}

/**
* Separate content.
* Separate content within modules.
*/
const HairlineDivider = ({ vertical, gradient, ...rest }) => {
return (
<hr {...safeRest(rest)} className={styles[getClassName(vertical, gradient)]} />
)
}
const HairlineDivider = ({ vertical, gradient, ...rest }) => (
<hr {...safeRest(rest)} className={styles[getClassName(vertical, gradient)]} />
)

HairlineDivider.propTypes = {
/**
* Draw the divider vertically.
*/
vertical: PropTypes.bool,
/**
* Use a subtle gradient instead of a solid thin line.
*/
gradient: PropTypes.bool
}

Expand Down
2 changes: 2 additions & 0 deletions src/components/Dividers/WaveDivider/WaveDivider.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
There should be at most 1 `WaveDivider` per page.

Images or artwork should **never** be used in combination with the `WaveDivider`.

```
<WaveDivider />
```

0 comments on commit 2f3a6ab

Please sign in to comment.