Skip to content

Commit 11024fb

Browse files
committed
docs(icon): add more examples to icon documentation
1 parent 6f77ed1 commit 11024fb

File tree

1 file changed

+3
-30
lines changed

1 file changed

+3
-30
lines changed

docs/pages/components/icon.md

+3-30
Original file line numberDiff line numberDiff line change
@@ -129,35 +129,6 @@ Icons are sized relative to the current font size. To change their size, set the
129129
</div>
130130
```
131131

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-
161132
### Labels
162133

163134
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
166137
<sl-icon name="star-fill" label="Add to favorites"></sl-icon>
167138
```
168139

140+
{% raw %}
141+
169142
```jsx:react
170143
import SlIcon from '@onsonr/nebula/dist/react/icon';
171144
@@ -509,4 +482,4 @@ If you want to change the icons Nebula uses internally, you can register an icon
509482

510483
```
511484
512-
```
485+
```

0 commit comments

Comments
 (0)