mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
Add step property to NumberInput. (#401)
This commit is contained in:
@@ -30,6 +30,7 @@ const NumberField: React.FC<Props> = (props) => {
|
||||
defaultValue={props.row.default}
|
||||
min={props.row.min}
|
||||
max={props.row.max}
|
||||
step={props.row.step}
|
||||
precision={props.row.precision}
|
||||
disabled={props.row.disabled}
|
||||
icon={props.row.icon && <FontAwesomeIcon icon={props.row.icon} fixedWidth />}
|
||||
|
||||
@@ -43,6 +43,7 @@ export interface INumber extends BaseField<'number', number> {
|
||||
precision?: number;
|
||||
min?: number;
|
||||
max?: number;
|
||||
step?: number;
|
||||
}
|
||||
|
||||
export interface ISlider extends Omit<BaseField<'slider', number>, 'description' | 'placeholder'> {
|
||||
|
||||
Reference in New Issue
Block a user