MCPcopy Create free account
hub / github.com/kobaltedev/kobalte / MultipleSelectionExample

Function MultipleSelectionExample

apps/docs/src/examples/toggle-group.tsx:246–321  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

244}
245
246export function MultipleSelectionExample() {
247 return (
248 <ToggleGroup
249 class={style["toggle-group"]}
250 multiple
251 defaultValue={["bold", "underline"]}
252 >
253 <ToggleGroup.Item
254 class={style["toggle-group__item"]}
255 value="bold"
256 aria-label="Bold"
257 >
258 <svg
259 xmlns="http://www.w3.org/2000/svg"
260 width="24px"
261 height="24px"
262 viewBox="0 0 24 24"
263 >
264 <path
265 fill="none"
266 stroke="currentColor"
267 stroke-linecap="round"
268 stroke-linejoin="round"
269 stroke-width="2"
270 d="M7 5h6a3.5 3.5 0 0 1 0 7H7zm6 7h1a3.5 3.5 0 0 1 0 7H7v-7"
271 />
272 <title>Bold</title>
273 </svg>
274 </ToggleGroup.Item>
275 <ToggleGroup.Item
276 class={style["toggle-group__item"]}
277 value="italic"
278 aria-label="Italic"
279 >
280 <svg
281 xmlns="http://www.w3.org/2000/svg"
282 width="24px"
283 height="24px"
284 viewBox="0 0 24 24"
285 >
286 <path
287 fill="none"
288 stroke="currentColor"
289 stroke-linecap="round"
290 stroke-linejoin="round"
291 stroke-width="2"
292 d="M11 5h6M7 19h6m1-14l-4 14"
293 />
294 <title>Italic</title>
295 </svg>
296 </ToggleGroup.Item>
297 <ToggleGroup.Item
298 class={style["toggle-group__item"]}
299 value="underline"
300 aria-label="Underline"
301 >
302 <svg
303 xmlns="http://www.w3.org/2000/svg"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected