-
{children}
+
);
}
-export function SidebarCategory({ title, children }) {
+export function SidebarCategory({ title }, { slots }) {
+ const children = slots.default();
return (
-
+
{title}
{children}
diff --git a/website/playground/sidebar/inputs.jsx b/website/playground/sidebar/inputs.jsx
index 814ec7664..5230417ed 100644
--- a/website/playground/sidebar/inputs.jsx
+++ b/website/playground/sidebar/inputs.jsx
@@ -1,4 +1,5 @@
-export function Checkbox({ label: _label, title, checked, onChange }) {
+export function Checkbox({ label: _label, title, checked }, { emit }) {
+ const onChange = (value) => emit("change", value);
return (