Skip to content

Function: percentField()

ts
function percentField(props: UiPercentFieldProps): Element;

Defined in: src/UI/blocks/percentField.tsx:42

Percent input field component with percent icon prefix.

Parameters

ParameterTypeDescription
propsUiPercentFieldPropsConfiguration object

Returns

Element

Examples

Basic usage with required props

percentField({
  name: 'rate',
  label: 'Interest Rate',
});

Usage with default value

percentField({
  name: 'tax',
  label: 'Tax Rate',
  defaultValue: '15',
  placeholder: 'Enter percent',
  required: true,
  disabled: false
});

Matterway Assistant SDK Documentation