@bwui/react
v0.1.2
Published
React adapter for Brickwork: typed components bound to the Brickwork token substrate and bw-* class contract.
Readme
@bwui/react
Typed React adapter for Brickwork. Components emit the same bw-* classes as
the HTML gallery and django-brickwork. Peer CSS is @bwui/css; this package
does not bundle the stylesheet.
npm install @bwui/react @bwui/cssimport "@bwui/css";
import { Homepage, Landing, ContactForm, Button, Field, Input } from "@bwui/react";
export function App() {
return <Homepage brand="Acme" />;
}Four jobs
| Job | Export |
|---|---|
| Homepage | <Homepage> |
| Landing | <Landing> |
| Forms | <Form>, <Field>, <Input>, <Checkbox>, <Combobox>, <DatePicker>, <DateRangePicker>, <TimeInput>, <ContactForm> |
| Components | <Button>, <Card>, <Modal>, <DataTable>, <CommandPalette>, … |
Copy Pro gallery HTML from brickworkui.com. @bwui/gallery is not an npm
dependency.
Stack mates
- HTML:
@bwui/css+@bwui/js - Vue:
@bwui/vue - Django:
django-brickworkon PyPI - Tailwind-first:
@bwui/tokens+@bwui/tailwind
