MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / AlertFadelessExample

Function AlertFadelessExample

stories/examples/Alert/Fadeless.js:5–17  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

3import Alert from '../../../src/Alert';
4
5export function AlertFadelessExample(props) {
6 const [visible, setVisible] = useState(true);
7
8 const onDismiss = () => setVisible(false);
9
10 return (
11 <div>
12 <Alert color="primary" isOpen={visible} toggle={onDismiss} fade={false}>
13 I am a primary alert and I can be dismissed without animating!
14 </Alert>
15 </div>
16 );
17}
18
19export function UncontrolledAlertFadelessExample() {
20 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…