Laravel EnsoLaravel Enso
Guide
Back End
Front End
GitHub
Guide
Back End
Front End
GitHub
  • Front End

    • Accessories
    • Addresses
    • Algolia
    • Audits
    • Auth
    • Bookmarks
    • Calendar
    • Card
    • Cargo Partner
    • Categories
    • Charts
    • Checkbox
    • Clipboard
    • Comments
    • Commercial
    • Companies
    • Confirmation
    • Currencies
    • Data Import
    • Date
    • Datepicker
    • Directives
    • Discounts
    • Divider
    • Documents
    • Dropdown
    • Dropdown Indicator
    • Eav
    • Emag
    • Emails
    • Enums
    • ERD
    • Facebook
    • Files
    • Filters
    • Financials
    • Forms
    • Frisbo
    • Google
    • Holidays
    • How to
    • Interactions
    • Inventory
    • IO
    • Laravel Validation
    • Loader
    • Localisation
    • Logs
    • Measurement Units
    • Meili Search
    • Menus
    • Mixins
    • Modal
    • Money
    • Monitored Emails
    • Notifications
    • Orderable Trees
    • Packaging Units
    • Pagination
    • People
    • Permissions
    • Product Lots
    • Products
    • Progress Bar
    • Progress Circle
    • Progress Indicator
    • Questionnaires
    • Quick View
    • Range Slider
    • Rating
    • Roles
    • Route Mapper
    • Sale Channels
    • Scroll to Top
    • Search Mode
    • Select
    • Sentry
    • Services
    • Smart Bill
    • SMS Advert
    • Strings
    • Switch
    • Tables
    • Tabs
    • Tasks
    • Teams
    • Textarea
    • Themes
    • Ticketing
    • Toastr
    • Transitions
    • Tree View
    • Tutorials
    • Typeahead
    • Typesense
    • UI
    • Uploader
    • UPS
    • User Groups
    • Users
    • Virtual Call Center
    • Vouchers
    • Webshop
    • WYSIWYG

Money

LicenseStableDownloadsVueJavaScriptSCSSnpmIssuesMerge Requests

Description

Money provides a two-way bound amount field that formats and sanitizes monetary values using accounting-js.

Installation

Install the package:

yarn add @enso-ui/money

The component can be consumed standalone or inside higher-level Enso form packages.

Features

  • exports a single Money component from the package root
  • supports input mode and read-only label mode
  • sanitizes user input and rounds values to the configured precision
  • customizes symbol, decimal separator, thousands separator, and positive/negative/zero formats

Usage

<script setup>
import Money from '@enso-ui/money';
</script>

<Money
    v-model="amount"
    symbol="€"
    :precision="2" />

API

Money

Import: @enso-ui/money

Props:

  • modelValue: number | string | null = null
  • label: boolean = false
  • readonly: boolean = false
  • disabled: boolean = false
  • placeholder: string | null = null
  • symbol: string = '$'
  • decimal: '.' | ',' = '.'
  • thousand: ' ' | '.' | ',' = ','
  • precision: number = 2
  • positive: string = '%s %v'
  • negative: string = '%s (%v)'
  • zero: string = '%s --'
  • tabindex: number | null = null

Emits:

  • update:modelValue

Behavior:

  • shows formatted output when label is enabled
  • enters raw-edit mode on focus
  • sanitizes, rounds, and emits the numeric value on input or blur

Depends On

  • accounting-js for money formatting and parsing.

Contributions

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!

License

MIT

Edit this page on GitHub
Last Updated: 4/21/2026, 10:04:44 AM
Prev
Modal
Next
Monitored Emails