()
| 14 | import { useMemo, useState } from 'react' |
| 15 | |
| 16 | export function PickerExample() { |
| 17 | const [background, setBackground] = useState('linear-gradient(to bottom right,#ff75c3,#ffa647,#ffe83f,#9fff5b,#70e2ff,#cd93ff)') |
| 18 | |
| 19 | return ( |
| 20 | <div |
| 21 | className="preview flex h-full min-h-[350px] w-full items-center justify-center rounded !bg-cover !bg-center p-10 transition-all" |
| 22 | style={{ background }} |
| 23 | > |
| 24 | <GradientPicker background={background} setBackground={setBackground} /> |
| 25 | </div> |
| 26 | ) |
| 27 | } |
| 28 | |
| 29 | export function GradientPicker({ |
| 30 | background, |
nothing calls this directly
no outgoing calls
no test coverage detected