@tfk-samf/components
TypeScript icon, indicating that this package has built-in type declarations

0.3.9 • Public • Published

Component Library for Troms County

This package wraps the Vuetify package to provide components in the Troms County style as building blocks to build web applications.

Getting started

Create a Vue application. Install @tfk-samf/components using the npm i command

npm i @tfk-samf/components

Configure and use the package in your main.ts.

import { createTfkApp } from '@tfk-samf/components'
import "@tfk-samf/components/style"

import App from './App.vue'
import { createApp } from 'vue'

// Vuetify config can be extended by passing options
const tfk = createTfkApp({})

createApp(App).use(tfk).mount('#app')

Using icons in your app

By default, only the icons required by Vuetify are bundled in the package. If you want to add your own icons, you can do so by installing Material Design Icons (MDI) as a dev dependency locally. Install the ES Module version of MDI like so.

npm install @mdi/js -D

Then import the individual icon in your Vue component and use it in <v-icon>

<script setup>
    import { VIcon } from '@tfk-samf/components'
    import { mdiAccount } from '@mdi/js'
</script>

<template>
    <v-icon :icon="mdiAccount" />
</template>

Default Vuetify config

{
    theme: {
        themes: {
            SvipperDark,
            SvipperLight,
        },
    },
    locale: {
        locale: 'no',
        messages: {
            // Adds Nynorsk support
            nno
        },
    },
    icons: {
        defaultSet: 'mdi',
        aliases,
        sets: {
            mdi,
        },
    },
}

Dependents (0)

Package Sidebar

Install

npm i @tfk-samf/components

Weekly Downloads

1

Version

0.3.9

License

none

Unpacked Size

1.43 MB

Total Files

10

Last publish

Collaborators

  • abelvanbeek