Pointer
The Pointer component displays the location of the knob.
Can be either be a rect, circle or triangle depending on the
passed type prop or any SVG element that is passed as a children.
<Knob size={100} angleOffset={220} angleRange={280} min={0} max={100}> <Pointer width={5} radius={40} type="circle" color="#FC5A96" /> </Knob>
Properties
| Prop | Description |
|---|---|
children | Can be any SVG element or a component that will render a SVG
element. If you pass a component the percentage of the current
value will be passed as a prop. The element will be rendered as
pointer. Note, that you have to pass |
className | Will be added to the predefined shape or the children. |
color | Color of the pointer. |
height | Height of the |
radius | Outer radius of the circle the pointer sits on. |
type | Can be |
width | Width of the |