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

Function DefaultValueExample

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

Source from the content-addressed store, hash-verified

77}
78
79export function DefaultValueExample() {
80 return (
81 <ToggleGroup class={style["toggle-group"]} defaultValue="bold">
82 <ToggleGroup.Item
83 class={style["toggle-group__item"]}
84 value="bold"
85 aria-label="Bold"
86 >
87 <svg
88 xmlns="http://www.w3.org/2000/svg"
89 width="24px"
90 height="24px"
91 viewBox="0 0 24 24"
92 >
93 <path
94 fill="none"
95 stroke="currentColor"
96 stroke-linecap="round"
97 stroke-linejoin="round"
98 stroke-width="2"
99 d="M7 5h6a3.5 3.5 0 0 1 0 7H7zm6 7h1a3.5 3.5 0 0 1 0 7H7v-7"
100 />
101 <title>Bold</title>
102 </svg>
103 </ToggleGroup.Item>
104 <ToggleGroup.Item
105 class={style["toggle-group__item"]}
106 value="italic"
107 aria-label="Italic"
108 >
109 <svg
110 xmlns="http://www.w3.org/2000/svg"
111 width="24px"
112 height="24px"
113 viewBox="0 0 24 24"
114 >
115 <path
116 fill="none"
117 stroke="currentColor"
118 stroke-linecap="round"
119 stroke-linejoin="round"
120 stroke-width="2"
121 d="M11 5h6M7 19h6m1-14l-4 14"
122 />
123 <title>Italic</title>
124 </svg>
125 </ToggleGroup.Item>
126 <ToggleGroup.Item
127 class={style["toggle-group__item"]}
128 value="underline"
129 aria-label="Underline"
130 >
131 <svg
132 xmlns="http://www.w3.org/2000/svg"
133 width="24px"
134 height="24px"
135 viewBox="0 0 24 24"
136 >

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected