MCPcopy Create free account
hub / github.com/fontsource/fontsource / DropdownSimple

Function DropdownSimple

website/app/components/Dropdown.tsx:120–146  ·  view source on GitHub ↗
({
	label,
	items,
	w,
	noBorder,
	refine,
}: DropdownProps)

Source from the content-addressed store, hash-verified

118};
119
120const DropdownSimple = ({
121 label,
122 items,
123 w,
124 noBorder,
125 refine,
126}: DropdownProps) => {
127 const options = items.map((item) => (
128 <Combobox.Option
129 value={item.value}
130 key={item.value}
131 active={item.isRefined}
132 >
133 {item.label ?? item.value}
134 </Combobox.Option>
135 ));
136
137 return (
138 <DropdownBase
139 label={label}
140 options={options}
141 refine={refine}
142 w={w}
143 noBorder={noBorder}
144 />
145 );
146};
147
148const DropdownCheckbox = ({
149 label,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected