Skip to content

Commit b233b4c

Browse files
examples added
1 parent a0ce39e commit b233b4c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed
78.6 KB
Loading

examples/src/index.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ const options = {
1313
const App = () => (
1414
<div>
1515
<Alert margin = "10"/>
16-
<Alert type = "danger" margin = "10" message = "error! occured somewhere." />
17-
<Alert type = "warning" margin = "10" message = "Hurry! check your dependencies!"/>
18-
<Alert {...options} />
16+
<Alert type = "danger" margin = "10" message = "Danger! This alert box indicates a dangerous or potentially negative action." />
17+
<Alert type = "warning" margin = "10" message = "Warning! This alert box indicates a warning that might need attention."/>
18+
<Alert type = "secondary" margin = "10" message = "Secondary! This alert box indicates a less important action." />
19+
<Alert type = "info" margin = "10" message = "Info! This alert box indicates a neutral informative change or action." />
20+
<Alert type = "success" margin = "10" message = "Success! This alert box indicates a successful or positive action." />
21+
<Alert type = "light" margin = "10" message = "Light! Light grey alert box." />
22+
<Alert message = "Custom! modify it by passing optionals" {...options}/>
1923
</div>
2024
);
2125
render(<App />, document.getElementById("root"));

0 commit comments

Comments
 (0)