@zodal/dials-ui-shadcn
v0.1.0
Published
React/shadcn renderer for @zodal/dials-ui — settings panel components consuming the headless config
Downloads
39
Readme
@zodal/dials-ui-shadcn
React renderer for @zodal/dials-ui — settings panel components that consume the headless config. Plain elements with zodal-dials-* classes; swap in shadcn/ui primitives in a consumer.
npm i @zodal/dials-ui-shadcn @zodal/dials-core @zodal/dials-ui react react-domimport { SettingsPanel } from '@zodal/dials-ui-shadcn';
import { toSettingsForm, toFieldStates } from '@zodal/dials-ui';
const result = dials.resolve(layers, { maskSecrets: true });
const form = toSettingsForm(dials, { result });
const states = toFieldStates(form.fields, result, dirtyKeys);
<SettingsPanel form={form} states={states} onChange={setValue} onReset={resetKey} />SettingsPanel(search + facet sections) andSettingField(one row, provenance badges + reset).createShadcnSettingsRegistry()— a per-widget React control registry with a terminal rawJson fallback; register a higher-priority control to override.- Secrets render masked (write-only field, masked status) and never echo plaintext.
Part of the zodal-dials ecosystem.
