--- import { Icon } from 'astro-icon/components' import { Markdown } from 'astro-remote' import { cn } from '../lib/cn' import InputWrapper from './InputWrapper.astro' import type { MarkdownString } from '../lib/markdown' import type { ComponentProps } from 'astro/types' type Props = Omit, 'children' | 'inputId'> & { options: { label: string value: string icon?: string iconClass?: string description?: MarkdownString }[] disabled?: boolean selectedValue?: string cardSize?: 'lg' | 'md' | 'sm' iconSize?: 'md' | 'sm' multiple?: boolean } const { options, disabled, selectedValue, cardSize = 'sm', iconSize = 'sm', class: className, multiple, ...wrapperProps } = Astro.props const inputId = Astro.locals.makeId(`input-${wrapperProps.name}`) const hasError = !!wrapperProps.error && wrapperProps.error.length > 0 ---
{ options.map((option) => ( )) }