@nhic/rwds-react
v1.0.0
Published
RWDS React components: React Aria behaviour on the shared rw- stylesheet.
Readme
@nhic/rwds-react
React components for RWDS, the Rwanda Government Design System. They render the rw- classes from @nhic/rwds-css, so load that stylesheet once in your app.
import '@nhic/rwds-css/rwds.css';
import { RwProvider } from '@nhic/rwds-react/providers';
import { Stack } from '@nhic/rwds-react/Stack';
import { rw } from '@nhic/rwds-i18n/catalogs/rw';
export function App() {
return (
<RwProvider catalog={rw} theme="sky">
<Stack gap={4}>…</Stack>
</RwProvider>
);
}Documentation: see the RWDS docs site.
