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
| ref | No | <code>let</code> | Yes | <code>null | HTMLLIElement</code> | <code>null</code> | Obtain a reference to the list item HTML element |
861
-
| selectable | No | <code>let</code> | Yes | <code>boolean</code> | <code>false</code> | Set to `true` to enable the selectable variant.<br />Automatically set to `true` if `selected` is `true`. |
862
-
| selected | No | <code>let</code> | Yes | <code>boolean</code> | <code>false</code> | Set to `true` to use the selected variant |
863
-
| icon | No | <code>let</code> | Yes | <code>any</code> | <code>undefined</code> | Specify the icon to render.<br />Icon is rendered to the left of the label text. |
864
-
| indented | No | <code>let</code> | Yes | <code>boolean</code> | <code>false</code> | Set to `true` to indent the label |
865
-
| kind | No | <code>let</code> | No | <code>"default" | "danger"</code> | <code>"default"</code> | Specify the kind of option. |
866
-
| disabled | No | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to enable the disabled state |
867
-
| labelText | No | <code>let</code> | No | <code>string</code> | <code>""</code> | Specify the label text.<br />Alternatively, use the "labelText" slot.<br />@example <br />`svelte<br /><ContextMenuOption><br /> <span slot="labelText">Custom Label</span><br /></ContextMenuOption><br />`|
868
-
| shortcutText | No | <code>let</code> | No | <code>string</code> | <code>""</code> | Specify the shortcut text.<br />Alternatively, use the "shortcutText" slot.<br />@example <br />`svelte<br /><ContextMenuOption><br /> <span slot="shortcutText">Ctrl+K</span><br /></ContextMenuOption><br />`|
869
-
| id | No | <code>let</code> | No | <code>string</code> | <code>"ccs-" + Math.random().toString(36)</code> | Specify the id.<br />It's recommended to provide an id as a value to bind to within a selectable/radio menu group. |
| ref | No | <code>let</code> | Yes | <code>null | HTMLLIElement</code> | <code>null</code> | Obtain a reference to the list item HTML element |
861
+
| selectable | No | <code>let</code> | Yes | <code>boolean</code> | <code>false</code> | Set to `true` to enable the selectable variant.<br />Automatically set to `true` if `selected` is `true`. |
862
+
| selected | No | <code>let</code> | Yes | <code>boolean</code> | <code>false</code> | Set to `true` to use the selected variant |
863
+
| icon | No | <code>let</code> | Yes | <code>any</code> | <code>undefined</code> | Specify the icon to render.<br />Icon is rendered to the left of the label text. |
864
+
| indented | No | <code>let</code> | Yes | <code>boolean</code> | <code>false</code> | Set to `true` to indent the label |
865
+
| kind | No | <code>let</code> | No | <code>"default" | "danger"</code> | <code>"default"</code> | Specify the kind of option. |
866
+
| disabled | No | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to enable the disabled state |
867
+
| labelText | No | <code>let</code> | No | <code>string</code> | <code>""</code> | Specify the label text.<br />Alternatively, use the "labelChildren" slot.<br />@example <br />`svelte<br /><ContextMenuOption><br /> <span slot="labelChildren">Custom Label</span><br /></ContextMenuOption><br />`|
868
+
| shortcutText | No | <code>let</code> | No | <code>string</code> | <code>""</code> | Specify the shortcut text.<br />Alternatively, use the "shortcutText" slot.<br />@example <br />`svelte<br /><ContextMenuOption><br /> <span slot="shortcutText">Ctrl+K</span><br /></ContextMenuOption><br />`|
869
+
| id | No | <code>let</code> | No | <code>string</code> | <code>"ccs-" + Math.random().toString(36)</code> | Specify the id.<br />It's recommended to provide an id as a value to bind to within a selectable/radio menu group. |
Copy file name to clipboardExpand all lines: docs/src/COMPONENT_API.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2860,7 +2860,7 @@
2860
2860
{
2861
2861
"name": "labelText",
2862
2862
"kind": "let",
2863
-
"description": "Specify the label text.\nAlternatively, use the \"labelText\" slot.\n@example \n```svelte\n<ContextMenuOption>\n <span slot=\"labelText\">Custom Label</span>\n</ContextMenuOption>\n```",
2863
+
"description": "Specify the label text.\nAlternatively, use the \"labelChildren\" slot.\n@example \n```svelte\n<ContextMenuOption>\n <span slot=\"labelChildren\">Custom Label</span>\n</ContextMenuOption>\n```",
0 commit comments