Controls
Control section
a fold in a panel · closed, it still says how many controls inside are changed
function ControlSectionDemo() { const [blur, setBlur] = React.useState(24); return ( <ControlSection className={narrow} title="Shadow" edited={blur === 16 ? 0 : 1}> <NumberField label="Blur" unit="px" min={0} max={48} defaultValue={16} value={blur} onChange={setBlur} /> </ControlSection> );}API
<ControlSection title defaultOpen? edited? actions?>…</ControlSection>Get it
Already in every copy of the web kit:
import { ControlSection } from '@/components/controls/section';Details
- Exports
ControlSection- Packages
- cn@^0.5.2, lucide-react@^1.52.0
- Installs with
- @halftone-web/control-row
- Also searched as
- folder, fold, group, accordion
- Registry JSON
- /r/web/control-section.json
Agents: the whole registry is at /llms.txt.