@navikt/aksel-icons 2.7.1 → 2.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,15 +16,17 @@
|
|
|
16
16
|
|
|
17
17
|
## Use
|
|
18
18
|
|
|
19
|
+
For previous users of `@navikt/ds-icons`, this package utilizes the same API. The only difference is that the icons are suffixed with `Icon` to avoid naming conflicts and visual changes to the icons themselves.
|
|
20
|
+
|
|
19
21
|
```jsx
|
|
20
|
-
import { StarIcon } from "@navikt/
|
|
22
|
+
import { StarIcon } from "@navikt/aksel-icons";
|
|
21
23
|
|
|
22
24
|
function App() {
|
|
23
|
-
return <StarIcon title="star" fontSize="1.5rem"/>;
|
|
25
|
+
return <StarIcon title="star" fontSize="1.5rem" />;
|
|
24
26
|
}
|
|
27
|
+
```
|
|
25
28
|
|
|
26
29
|
Tip: Use the `title` prop for accessible icons.
|
|
27
|
-
```
|
|
28
30
|
|
|
29
31
|
### Sizing
|
|
30
32
|
|