@@ -12,10 +12,13 @@ import ScaleScale from './examples/Scale_Scale'
1212import PointerCustom from './examples/Pointer_custom'
1313import ScaleCustom from './examples/Scale_custom'
1414import ScaleStyled from './examples/Scale_styled'
15+ import ScaleStyled2 from './examples/Scale_styled_2'
1516import ArcPointerStyled from './examples/Arc_Pointer_styled'
17+ import Filter from './filter'
1618
1719export default ( ) => (
1820 < div >
21+ < Filter />
1922 < H1 > React Knob</ H1 >
2023 < H2 >
2124 < span > Base Components</ span >
@@ -52,14 +55,8 @@ export default () => (
5255 < span > Custom Elements</ span >
5356 </ H2 >
5457 < Description >
55- The < pre > Knob</ pre > component and the < pre > Pointer</ pre > and{ ' ' }
56- < pre > Scale</ pre > components can also render custom components. All
57- direct children of the < pre > Knob</ pre > get the following props
58- passed: < pre > percentage</ pre > < pre > size</ pre > , < pre > value</ pre > ,
59- < pre > angleOffset</ pre > ,< pre > angleRange</ pre > ,{ ' ' }
60- < pre > radius: size / 2</ pre > ,< pre > center: size / 2</ pre > ,{ ' ' }
61- < pre > steps</ pre > . The children of < pre > Pointer</ pre > get{ ' ' }
62- < pre > width</ pre > , < pre > height</ pre > , < pre > percentage</ pre > passed.
58+ The < pre > Pointer</ pre > and < pre > Scale</ pre > components can also
59+ render custom components.
6360 </ Description >
6461 < Grid >
6562 < PointerCustom />
@@ -68,10 +65,17 @@ export default () => (
6865 < H2 >
6966 < span > Styles</ span >
7067 </ H2 >
71- < Description />
68+ < Description >
69+ The components and the knob itself can be styled by addingthe{ ' ' }
70+ < pre > className</ pre > prop. The < pre > Scale</ pre > can have an
71+ additional < pre > activeClassname</ pre > prop to style the active tick
72+ differently. As all components are SVG you can also use filters in
73+ your styles.
74+ </ Description >
7275 < Grid >
7376 < ArcPointerStyled />
7477 < ScaleStyled />
78+ < ScaleStyled2 />
7579 </ Grid >
7680 </ div >
7781)
0 commit comments