--- import site from '@data/site.json' import CaptureScript from '../components/CaptureScript.astro' interface Props { value?: string id?: string | number format?: string | false class?: string /** Accessible name for the input; falls back to a generic label when the caller doesn't wrap this in a labelled FormGroup */ ariaLabel?: string } const { value, id = 'default', format = false, class: className, ariaLabel } = Astro.props const alpha = false const colors = site.colors as Record const swatchProps = Object.values(colors).map((color) => color.prop) const colorpickerId = `colorpicker-${id}` const colorpickerSelector = `#colorpicker-${id}` ---