Matterway
    Preparing search index...

    Function currencyField

    • Currency input field component with currency icon prefix.

      Parameters

      • props: UiCurrencyFieldProps

        Configuration object

        • name

          Name of the component

        • label

          Label text

        • currency

          Currency type to display the appropriate icon

        • placeholder

          Placeholder text

        • defaultValue

          Default value for the currency field

        • required

          If true, the field is required

        • disabled

          If true, the field is disabled

        • invalid

          If false/undefined the field is valid. If a string is provided, it will be used as the validation message

      Returns Element

      Basic usage with required props

      currencyField({
      name: 'price',
      label: 'Price',
      currency: 'dollar'
      });

      Usage with default value and different currency

      currencyField({
      name: 'salary',
      label: 'Monthly Salary',
      currency: 'euro',
      defaultValue: '5000',
      placeholder: 'Enter amount',
      required: true,
      disabled: false
      });