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:
DT-branded form components using @dangerousthings/react.