Skip to content

Commit 1dc4e6d

Browse files
author
Aaron Panchal
committed
Add properties description to Alerts documentation
1 parent ecb1daa commit 1dc4e6d

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

docs/lib/Components/AlertsPage.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,24 @@ export default class AlertsPage extends React.Component {
2626
</PrismCode>
2727
</pre>
2828

29+
<h3>Properties</h3>
30+
<pre>
31+
<PrismCode className="language-jsx">
32+
{`Alert.propTypes = {
33+
className: PropTypes.any,
34+
color: PropTypes.string, // default: 'success'
35+
isOpen: PropTypes.bool, // default: true
36+
toggle: PropTypes.func,
37+
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
38+
39+
// Set any of the timeouts to 0 to disable animation
40+
transitionAppearTimeout: PropTypes.number,
41+
transitionEnterTimeout: PropTypes.number,
42+
transitionLeaveTimeout: PropTypes.number
43+
}`}
44+
</PrismCode>
45+
</pre>
46+
2947
<h3>Dismissing</h3>
3048
<div className="docs-example">
3149
<AlertDismissExample />

0 commit comments

Comments
 (0)