staf-komponentbibliotek-svelte
TypeScript icon, indicating that this package has built-in type declarations

1.1.13 • Public • Published

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>

Readme

Keywords

Package Sidebar

Install

npm i staf-komponentbibliotek-svelte

Weekly Downloads

3

Version

1.1.13

License

none

Unpacked Size

2.34 MB

Total Files

290

Last publish

Collaborators

  • tobiasgunther