Files
Neil 36f17a04a7 plugins: Box layout container for components panels (catalog 4) (#37420)
- Box (ui.catalog 4, since 1.4.248): direction, gap/padding/paddingX/
  paddingY/margin on the gap scale, align, justify, wrap, grow, shrink,
  width/height/min/max (px up to 4096 or whole percents), columns,
  scroll, border (true or a tone), radius, background (theme surfaces or
  tone tints). Strict props: hex colours, CSS lengths and unknown props
  are dropped with a warning like other components.
- Renderer maps props to theme tokens through data attributes; sizes
  reach inline style only as validated px or percents.
- Typings, docs, skill references, gallery Layout tab; orca/testing
  finds Boxes and summarizes danger or warning Boxes.
2026-11-02 01:05:57 -08:00

28 lines
853 B
TypeScript

// No build step: Orca transpiles these files when the panel loads.
import { atom, read, set, Tab, Tabs } from 'orca'
import { ContentTab } from './content'
import { DataTab } from './data'
import { FormsTab } from './forms'
import { LayoutTab } from './layout'
export const tab = atom('gallery.tab', 'forms', { persist: 'plugin' })
export default function Gallery() {
return (
<Tabs label="Gallery sections" value={read(tab)} onChange={(value) => set(tab, value)}>
<Tab value="forms" label="Forms" icon="edit">
<FormsTab />
</Tab>
<Tab value="data" label="Data" icon="database">
<DataTab />
</Tab>
<Tab value="content" label="Content" icon="file-text">
<ContentTab />
</Tab>
<Tab value="layout" label="Layout" icon="layers">
<LayoutTab />
</Tab>
</Tabs>
)
}