Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.04 KB

README.md

File metadata and controls

49 lines (35 loc) · 1.04 KB

@tok/ui plugins

Required plugin to enable useAlerts functionality

Usage

// main.ts
import { createApp } from 'vue';
import App from './App.vue';
import { AlertsPlugin } from '@tok/ui/plugins/alerts';

createApp(App).use(AlertsPlugin).mount('#app');

Allows you to globally configure options for Money component

Usage

// main.ts
import { createApp } from 'vue';
import App from './App.vue';
import { CurrencyPlugin } from '@tok/ui/plugins/currency';

const currencyOptions = {
// currency symbol alignment
// default: 'left'
align?: 'left' | 'right';

// currency symbol
// default: 'USD'
currency?: CurrencyVariants;

// separator for decimal 1.00 or 1,00 as you wish
// default '.'
decimalSeparator?: string;

// separator for thousand 1_000_000 or 1x000x000
// default ' '
thousandSeparator?: string;
};

createApp(App).use(CurrencyPlugin, currencyOptions).mount('#app');