Components
BaseFormattedValue
A number or amount formatted for the current language, with an optional prefix, suffix or icon.
components/ui/BaseFormattedValue.vue
View in the demo
Example
1280
$48,250.50
3.5%
~72ms
4.8
1250
API
Props
Name | Type | Default | Description |
|---|---|---|---|
valuerequired | string | number | — | The value to format. |
typerequired | "default" | "currency" | "default" | default (number) or currency (with NUXT_PUBLIC_DEFAULT_CURRENCY). |
suffix | string | — | Text after the value, or icon-<name> for an icon. |
prefix | string | — | Text before the value, or icon-<name> for an icon. |