Skip to content

Commit

Permalink
Småfiks på badge-dok
Browse files Browse the repository at this point in the history
  • Loading branch information
gruble committed Jun 15, 2024
1 parent 0ac3dce commit 6154f28
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions doc/pages/components/nve-badge.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ Du finner også flere eksempler i [Shoelace-dokumentasjonen](https://shoelace.st

### Varianter

Bruk `variant` for å velge farge.
Bruk `variant` for å velge farge. Primary er standard og trenger ikke settes.

```html:preview
<nve-badge variant="primary">primary (dette er standard)</nve-badge>
<nve-badge variant="primary">primary</nve-badge>
<nve-badge variant="neutral">neutral</nve-badge>
<nve-badge variant="success">success</nve-badge>
<nve-badge variant="warning">warning</nve-badge>
Expand All @@ -25,7 +25,7 @@ Bruk `variant` for å velge farge.

### Størrelse

Bruk `size` for å velge størrelse.
Bruk `size` for å velge størrelse. `medium` er standard.

```html:preview
<nve-badge size="small">small</nve-badge>
Expand All @@ -35,11 +35,25 @@ Bruk `size` for å velge størrelse.

### Low

Bruk `low` for å gjøre badge mildere.
Bruk `low` for lysere bakgrunnsfarge. Teksten blir da svart for alle varianter.

```html:preview
<nve-badge low>low</nve-badge>
<nve-badge>vanlig</nve-badge>
<nve-badge low variant="primary">primary</nve-badge>
<nve-badge low variant="neutral">neutral</nve-badge>
<nve-badge low variant="success">success</nve-badge>
<nve-badge low variant="warning">warning</nve-badge>
<nve-badge low variant="danger">danger</nve-badge>
<nve-badge low variant="brand">brand</nve-badge>
low
<br/>
<br/>
<nve-badge variant="primary">primary</nve-badge>
<nve-badge variant="neutral">neutral</nve-badge>
<nve-badge variant="success">success</nve-badge>
<nve-badge variant="warning">warning</nve-badge>
<nve-badge variant="danger">danger</nve-badge>
<nve-badge variant="brand">brand</nve-badge>
vanlig
```

### Knapp med badge
Expand Down

0 comments on commit 6154f28

Please sign in to comment.