@dangerousthings/react
React web components for the Dangerous Things design system — 20 themed components wrapping @dangerousthings/web CSS with React APIs matching @dangerousthings/react-native for cross-platform parity.
Install
Peer Dependencies
Setup
Wrap your app with DTWebThemeProvider and import the web CSS bundle:
The provider sets data-brand and data-theme attributes on a wrapper div and exposes brand/theme via React context.
Components
Bevel & Layout
| Component |
Description |
DTCard |
Beveled card with header, progress bar, and mode colors |
DTButton |
Beveled button with variant colors |
DTLabel |
Top-right beveled label with status colors |
DTChip |
Compact labeled element |
DTMediaFrame |
Diagonal beveled frame for images |
DTModal |
Modal dialog with beveled corners |
DTDrawer |
Side drawer with edge bevels |
DTHexagon |
Decorative hexagon SVG shape |
Forms
| Component |
Description |
DTTextInput |
Sharp-cornered input with focus glow |
DTCheckbox |
Beveled checkbox with opposing corner cuts |
DTSwitch |
Angular toggle switch |
DTRadioGroup |
Hexagonal radio buttons |
DTQuantityStepper |
Beveled +/- increment buttons |
DTSearchInput |
Search-styled text input |
Layout & Animation
| Component |
Description |
DTProgressBar |
Angular progress bar with optional label |
DTAccordion |
Collapsible sections with accent border |
DTStaggerContainer |
Staggered scale-in entrance animation for children |
DTBadgeOverlay |
Absolute-positioned badge wrapper |
Filter & Feature
| Component |
Description |
DTMenu |
Dropdown menu with item variants |
DTFeatureLegend |
Product feature grid with icons and rotated labels |
DTMobileFilterOverlay |
Full-screen slide-up filter overlay with backdrop |
DTGallery |
Image gallery |
Animation Hooks
| Hook |
Description |
useScaleIn |
Scale 0 to 1 entrance animation |
usePulse |
Looping opacity pulse animation |
Usage Examples
Theme Utilities
Variant Utilities
Monorepo
Part of the DT Design System monorepo.
License
MIT