Files
8a0f687f6e Refactor playground to use Vue (#18463)
Co-authored-by: fisker <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
2025-12-10 23:48:10 +08:00

19 lines
437 B
React

export function Sidebar({ visible }, { slots }) {
const children = slots.default();
return (
<div class={`options-container ${visible ? "open" : ""}`}>
<div class="options">{children}</div>
</div>
);
}
export function SidebarCategory({ title }, { slots }) {
const children = slots.default();
return (
<details class="sub-options" open>
<summary>{title}</summary>
{children}
</details>
);
}