Library · Version 19.7.8
react-develop-universe
A consistent set of React components prefixed RDU_, built for forms, dialogs and chat.
Source code ↗See the demo: React Kitchen Sink
react-develop-universe
The React version of the same design system. It is built with Vite library mode, published as an npm package with TypeScript types and versioned with standard-version.
Design principles
- RDU_ prefixed names make components easy to spot and avoid clashes.
- Forms with React Hook Form and schema validation with Zod.
- Global state with Redux Toolkit; redux, react and react-dom are peer dependencies.
- Translations with react-i18next and customisable styling.
- CSS is declared as a side effect to keep tree shaking safe.
What’s in it
UI- Button, card, chip, carousel, dropdown, picture and pager.
Inputs- Twenty-two components: text, password, email, number, date, time, color, range, file, checkbox, radio, datalist, select, textarea and more.
Dialog and offcanvas- Providers to open dialogs and side panels from anywhere.
AI chat- Chat components with Redux state and typed data models.
Providers and interceptors- Loader, error handling and an MSAL interceptor for Azure AD.
Intersection- IntersectionObserver-based component and hook that notify when an element enters or leaves the viewport.
Example
Typical usage with React Hook Form
<RDU_InputText
name="username"
feature="myFeature"
maxLength={50}
register={register}
formState={formState}
schema={TextSchema}
/>
<RDU_Button type="submit" text="Submit" variant="primary" />