2.1.0 • Published 6 months ago

@obosbbl/grunnmuren-icons-react v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@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>
2.0.0-canary.7

8 months ago

2.0.0-canary.4

9 months ago

2.0.0-canary.3

11 months ago

2.0.0-canary.6

9 months ago

2.0.0-canary.5

9 months ago

2.1.0

6 months ago

2.0.0-canary.2

11 months ago

2.0.0

7 months ago

2.0.0-canary.1

2 years ago

2.0.0-canary.0

2 years ago