import type { Meta, StoryObj } from '@storybook/html'; import { Tree, type TreeOptions } from '@42/core/tree'; import '@42/styles/tree.css'; const meta: Meta = { title: 'Core/Data & Collections/Tree', tags: ['autodocs'], argTypes: { expandAll: { control: 'boolean' }, treeSelection: { control: 'boolean' }, }, args: { expandAll: true, treeSelection: true }, render: (args) => { const root = document.createElement('ul'); root.dataset.c42Tree = ''; root.innerHTML = `
  • `; new Tree(root, args); return root; }, }; export default meta; type Story = StoryObj; export const Default: Story = {}; export const IndependentCheckboxes: Story = { args: { treeSelection: false } };