--- import Icon from './Icon.astro'; import CaptureScript from '../components/CaptureScript.astro'; interface Props { id?: string; value?: string; placeholder?: string; class?: string; /** 'icon' | 'icon-prepend' | undefined (plain) */ layout?: string; inline?: boolean; } const { id, value = '2020-06-20', placeholder = 'Select a date', class: className, layout, inline, } = Astro.props; const chevronLeft = '\n\t'; const chevronRight = '\n\t'; const datepickerId = id ? `datepicker-${id}` : undefined; --- { id && (inline ? (
) : layout === 'icon' ? (