Appearance
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
| Parameter | Type | Description |
|---|---|---|
props | UiPercentFieldProps | Configuration 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
});