@obosbbl/grunnmuren-icons-react

2.0.0-canary.1 • Public • Published

@obosbbl/grunnmuren-icons-react

npm canary version

Grunnmuren's icon set as React components.

If you want the raw SVG files for the icons, see @obosbbl/grunnmuren-icons-svg instead.

Install

# npm
npm install @obosbbl/grunnmuren-icons-react@canary

# pnpm
pnpm add @obosbbl/grunnmuren-icons-react@canary

Usage

import { House } from '@obosbbl/grunnmuren-icons-react';

export function Page() {
  return <House />;
}

Accessibility

The SVG markup has role="img" set to indicate to screen readers that the element should be interpreted as an image.

Since icons mostly are used as a visual decoration, they will also render with aria-hidden="true" by default, unless you specify an accessible label using aria-label.

<House />
// <svg role="img" aria-hidden="true">...</svg>

<House aria-label="Ikon som illustrerer et hus" />
// <svg role="img" aria-label="Hus">...</svg>

Readme

Keywords

none

Package Sidebar

Install

npm i @obosbbl/grunnmuren-icons-react

Weekly Downloads

618

Version

2.0.0-canary.1

License

MIT

Unpacked Size

164 kB

Total Files

5

Last publish

Collaborators

  • aulonm
  • alexanbj