MCPcopy Index your code
hub / github.com/Illyism/gradient-picker / PickerExample

Function PickerExample

components/PickerExample.tsx:16–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14import { useMemo, useState } from 'react'
15
16export 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
29export function GradientPicker({
30 background,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected