File tree 1 file changed +3
-30
lines changed
1 file changed +3
-30
lines changed Original file line number Diff line number Diff line change @@ -129,35 +129,6 @@ Icons are sized relative to the current font size. To change their size, set the
129
129
</div>
130
130
```
131
131
132
- {% raw %}
133
-
134
- ``` jsx:react
135
- import SlIcon from '@onsonr/nebula/dist/react/icon';
136
-
137
- const App = () => (
138
- <div style={{ fontSize: '32px' }}>
139
- <SlIcon name="exclamation-triangle" />
140
- <SlIcon name="archive" />
141
- <SlIcon name="battery-charging" />
142
- <SlIcon name="bell" />
143
- <SlIcon name="clock" />
144
- <SlIcon name="cloud" />
145
- <SlIcon name="download" />
146
- <SlIcon name="file-earmark" />
147
- <SlIcon name="flag" />
148
- <SlIcon name="heart" />
149
- <SlIcon name="image" />
150
- <SlIcon name="lightning" />
151
- <SlIcon name="mic" />
152
- <SlIcon name="search" />
153
- <SlIcon name="star" />
154
- <SlIcon name="trash" />
155
- </div>
156
- );
157
- ```
158
-
159
- {% endraw %}
160
-
161
132
### Labels
162
133
163
134
For non-decorative icons, use the ` label ` attribute to announce it to assistive devices.
@@ -166,6 +137,8 @@ For non-decorative icons, use the `label` attribute to announce it to assistive
166
137
<sl-icon name="star-fill" label="Add to favorites"></sl-icon>
167
138
```
168
139
140
+ {% raw %}
141
+
169
142
``` jsx:react
170
143
import SlIcon from '@onsonr/nebula/dist/react/icon';
171
144
@@ -509,4 +482,4 @@ If you want to change the icons Nebula uses internally, you can register an icon
509
482
510
483
```
511
484
512
- ```
485
+ ```
You can’t perform that action at this time.
0 commit comments