solid-knobs / ControlProps
-
Omit
<JSX.HTMLAttributes
<HTMLDivElement
>,"onChange"
>↳
ControlProps
• Optional
label: string
The label that should be used for the aria label (for accessibility).
• Optional
defaultValue: number
The default value.
• value: number
The un-normalised value.
• range: Range
The range of the value.
• Optional
speed: number
The relative speed of the change gesture. The default is 1.
• Optional
hideCursor: boolean
Whether the cursor should be hidden while changing the value. Note! This might result in constant annoying pop-ups in certain browsers.
• children: any
Omit.children
▸ Optional
onGestureStart(e
): void
Called when starting the change gesture.
Name | Type |
---|---|
e |
MouseEvent | TouchEvent |
void
▸ Optional
onGestureEnd(e
): void
Called when ending the change gesture.
Name | Type |
---|---|
e |
MouseEvent | TouchEvent |
void
▸ onChange(value
): void
Called with the un-normalised value when it changes.
Name | Type | Description |
---|---|---|
value |
number |
The un-normalised value. |
void