import { useState } from 'react'; import { DTTextInput, DTCheckbox, DTSwitch, DTRadioGroup, DTProgressBar, DTAccordion, DTQuantityStepper, } from '@dangerousthings/react'; import type { DTAccordionSection } from '@dangerousthings/react'; import { Section, Row, CodeLabel, DemoLabel } from '../components/Section'; export function FormsPage() { const [checks, setChecks] = useState({ a: false, b: true, c: true, d: false }); const [switches, setSwitches] = useState({ a: false, b: true, c: true, d: false }); const [radioValue, setRadioValue] = useState('nfc'); const [stepperValue, setStepperValue] = useState(1); const accordionSections: DTAccordionSection[] = [ { key: 'size', title: 'Size', children:
Small, Medium, Large options available.
}, { key: 'chip', title: 'Chip Type', children:
NTAG, DESFire, MIFARE Classic.
}, { key: 'freq', title: 'Frequency', children:
13.56 MHz (HF), 125 kHz (LF).
}, ]; return ( <>

Forms

DT-branded form components using @dangerousthings/react.