You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/react-core/src/components/MenuToggle/examples/MenuToggle.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -179,6 +179,14 @@ In the following example, the toggle fills the width of its parent as the window
179
179
180
180
```
181
181
182
+
### Toggle in a form
183
+
184
+
When a menu toggle is used inside a form, pass the `isInForm` property so the toggle receives form-appropriate styling.
185
+
186
+
```ts file="MenuToggleInForm.tsx"
187
+
188
+
```
189
+
182
190
### Typeahead toggle
183
191
184
192
To create a typeahead toggle, pass in `variant="typeahead"` to the `<MenuToggle>`. Then, pass a `<TextInputGroup>` component as a child of the `<MenuToggle>`.
0 commit comments