Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@tfk-samf/components

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tfk-samf/components

Vue components used for applications in Troms County.

npmnpm
Version
1.0.0
Version published
Weekly downloads
16
166.67%
Maintainers
1
Weekly downloads
 
Created
Source

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,
        },
    },
}

FAQs

Package last updated on 12 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts