import * as select from '@remix-run/ui/select' import * as popover from '@remix-run/ui/popover' import { css } from 'remix/component' import type { Handle } from 'remix/component' export default function ExampleSelect() { return () => (
{options.map((option) => (
{option.label} {option.detail}
))}
) } function SelectedLabel(handle: Handle) { let context = handle.context.get(select.Context) return () => {context.displayedLabel} } function ChevronDownIcon() { return () => ( ) } const options = [ { label: 'Standard delivery', value: 'standard', detail: 'Arrives in 3–5 business days', textValue: ['standard', 'economy'], }, { label: 'Express delivery', value: 'express', detail: 'Arrives in 1–2 business days', textValue: ['express', 'priority'], }, { label: 'Collect in store', value: 'collect', detail: 'Unavailable in your area', disabled: true, }, ]