1.1.13 • Published 2 years ago

staf-komponentbibliotek-svelte v1.1.13

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

Statsforvalterens komponentbibliotek for svelte

Dette bibliotek er en fork av Sveltestrap hvor vi lagt vår egen stil oppå og modifisert / lagt til komponenter.


Installere komponentbibliotek

npm install --save svelte @statsforvalteren/staf-komponentbibliotek-svelte

Importere deretter komponentene du ønsker å bruke i din svelte komponent.

<script lang="ts">
import { Card, CardBody } from 'staf-komponentbibliotek-svelte';
  const cardProps = {
    title: "This is a title",
    displayImg: true,
    imgSrc: "https://via.placeholder.com/400x200/EDF1F8/00244E?text=Bilde/Illustrasjon"
  }
</script>

<Card>
  <CardBody {...cardProps}>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.</CardBody>
</Card>
1.1.13

2 years ago

1.1.12

2 years ago

1.1.10

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.0.0

4 years ago