Skip to content

Commit ac03c6d

Browse files
committed
ui(LFO): update LFO example
1 parent 088a4f6 commit ac03c6d

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

example/src/components/visualizaion/EchoLFO.tsx

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import { LFO, Knob, Button, LFOProps } from '@echo-ui'
2+
import { LFO, Knob, Button, LFOProps, SineIcon, SquareIcon, TriangleIcon } from '@echo-ui'
33

44
export const EchoLFO = () => {
55
const [type, setType] = React.useState<LFOProps['type']>('sine')
@@ -9,21 +9,29 @@ export const EchoLFO = () => {
99

1010
return (
1111
<section className="h-32 w-2/3 mb-32">
12-
<Button.Group size="sm" className="mb-2">
12+
<Button.Group className="mb-2" radius="sm">
1313
<Button toggled={type === 'sine'} onClick={() => setType('sine')}>
14-
Sine
14+
<SineIcon />
1515
</Button>
1616
<Button toggled={type === 'square'} onClick={() => setType('square')}>
17-
Square
17+
<SquareIcon />
1818
</Button>
1919
<Button toggled={type === 'triangle'} onClick={() => setType('triangle')}>
20-
Triangle
20+
<TriangleIcon />
2121
</Button>
2222
</Button.Group>
2323

2424
<LFO speed={speed} frequency={frequency} delay={delay} type={type} />
2525

26-
<Knob.Group size={50} trackWidth={3} min={0} max={1} step={0.1}>
26+
<Knob.Group
27+
className="mt-2"
28+
size={40}
29+
trackWidth={3}
30+
min={0}
31+
max={1}
32+
step={0.1}
33+
pointerHeight={6}
34+
>
2735
<Knob
2836
value={frequency}
2937
onChange={setFrequency}
@@ -47,7 +55,7 @@ export const EchoLFO = () => {
4755
sensitivity={8}
4856
onChange={setDelay}
4957
topLabel="Delay"
50-
bottomLabel={delay}
58+
bottomLabel={delay + ' ms'}
5159
/>
5260
</Knob.Group>
5361
</section>

0 commit comments

Comments
 (0)