forked from react-bootstrap/react-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAlertsSection.js
More file actions
31 lines (25 loc) · 996 Bytes
/
AlertsSection.js
File metadata and controls
31 lines (25 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function AlertsSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<Anchor id="alerts">Alert messages</Anchor> <small>Alert</small>
</h2>
<p>Basic alert styles.</p>
<ReactPlayground codeText={Samples.AlertBasic} />
<h3><Anchor id="alerts-closeable">Closeable alerts</Anchor></h3>
<p>just pass in a <code>onDismiss</code> function.</p>
<ReactPlayground codeText={Samples.AlertDismissable} />
<div className="bs-callout bs-callout-info">
<h4>Screen Reader Accessibility</h4>
<p>Unlike regular Bootstrap, alerts have an sr-only dismiss button after the content.</p>
</div>
<h3><Anchor id="alert-props">Props</Anchor></h3>
<PropTable component="Alert"/>
</div>
);
}