File size: 2,201 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
```jsx
<Alert type="primary" hasExtraSpace>
  <strong>Work in progress!</strong> More detailed documentation is coming soon.
</Alert>
```

### Alert Types

```jsx
<Alert type="primary">
  This is a <strong>primary</strong> alert—check it out!
</Alert>
<Alert type="secondary">
  This is a <strong>secondary</strong> alert—check it out!
</Alert>
<Alert type="success">
  This is a <strong>success</strong> alert—check it out!
</Alert>
<Alert type="info">
  This is a <strong>info</strong> alert—check it out!
</Alert>
<Alert type="warning">
  This is a <strong>warning</strong> alert—check it out!
</Alert>
<Alert type="danger">
  This is a <strong>danger</strong> alert—check it out!
</Alert>
```

### Alert With Icon

```jsx
<Alert type="primary" icon="bell">
  You have done 5 actions.
</Alert>
<Alert type="success" icon="check">
  The page has been added.
</Alert>
<Alert type="danger" icon="alert-triangle">
  The daily report has failed. Lorem ipsum dolor sit amet, consectetur
  adipisicing elit. Lorem ipsum dolor sit amet, consectetur
  adipisicing elit. Lorem ipsum dolor sit amet, consectetur
  adipisicing elit.
</Alert>
```

### Alert isDismissible

```jsx
<Alert type="warning" isDismissible>
  Lorem ipsum dolor sit amet, consectetur adipisicing elit.
</Alert>
```

### Alert with avatar

```jsx
<Alert type="primary" avatar="./demo/faces/male/4.jpg">
  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor
  sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet,
  consectetur adipisicing elit.
</Alert>
```

### Alert with buttons

```jsx
<Alert type="primary" isDismissible>
  <Header.H4>Some Message</Header.H4>
  <p>
    Lorem ipsum Minim ad pariatur eiusmod ea ut nulla aliqua est quis id dolore
    minim voluptate.
  </p>
  <Button.List>
    <Button color="success" RootComponent="button">
      Okay
    </Button>
    <Button color="secondary" RootComponent="button">
      No, thanks
    </Button>
  </Button.List>
</Alert>
```

### Alert with extra space

```jsx
<span>Content Above</span>
<Alert type="primary" hasExtraSpace>
  Lorem ipsum dolor sit amet, consectetur adipisicing elit.
</Alert>
<span>Content Below</span>
```