--- import site from '@data/site.json' import CaptureScript from '../components/CaptureScript.astro' interface Props { value?: string id?: string | number alpha?: boolean format?: string | false swatchesOnly?: boolean class?: string } const { value, id = 'default', alpha = false, format = false, swatchesOnly, class: className } = Astro.props const colors = site.colors as Record const swatchProps = Object.values(colors).map((color) => color.prop) const colorpickerId = `colorpicker-${id}` const colorpickerSelector = `#colorpicker-${id}` ---