Knob API
API documentation for Knob component
KnobRoot#
Props#
Defines valid properties in Knob component.
State#
Defines valid state in Knob component.
Exposes#
Defines the methods and properties exposed by Knob component.
Events#
KnobRootChangeEvent
Event fired when the knob's value changes.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of Knob component.
Types#
Instance
Instance of Knob component.
| values |
|---|
| ComponentInstance<KnobRootProps, KnobRootState, KnobRootExposes> |
KnobRange#
Props#
Defines valid properties in KnobRange component.
Exposes#
Defines the methods and properties exposed by KnobRange component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of KnobRange component.
| name | type | default | description |
|---|---|---|---|
| root | KnobRangePassThroughType<HTMLAttributes<SVGPathElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of KnobRange component.
| values |
|---|
| ComponentInstance<KnobRangeProps, KnobRangeState, KnobRangeExposes> |
KnobValue#
Props#
Defines valid properties in KnobValue component.
Exposes#
Defines the methods and properties exposed by KnobValue component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of KnobValue component.
| name | type | default | description |
|---|---|---|---|
| root | KnobValuePassThroughType<HTMLAttributes<SVGPathElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of KnobValue component.
| values |
|---|
| ComponentInstance<KnobValueProps, KnobValueState, KnobValueExposes> |
KnobText#
Props#
Defines valid properties in KnobText component.
Exposes#
Defines the methods and properties exposed by KnobText component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of KnobText component.
| name | type | default | description |
|---|---|---|---|
| root | KnobTextPassThroughType<HTMLAttributes<SVGTextElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of KnobText component.
| values |
|---|
| ComponentInstance<KnobTextProps, KnobTextState, KnobTextExposes> |
useKnob#
Props#
Defines valid properties in useKnob.
State#
Defines valid state in useKnob.
Exposes#
Defines the methods and properties exposed by useKnob.
Events#
useKnobChangeEvent
Event fired when the knob's value changes.
Types#
Instance
Instance of useKnob headless.
| values |
|---|
| HeadlessInstance<useKnobProps, useKnobState, useKnobExposes> |