@nhic/rwds-elements
v1.1.1
Published
RWDS web components: Lit elements on the shared rw- stylesheet, registered explicitly.
Readme
@nhic/rwds-elements
Web components for RWDS, the Rwanda Government Design System, for server-rendered stacks such as Laravel Blade, Spring Thymeleaf and plain HTML. They render the rw- classes from @nhic/rwds-css into the light DOM.
Nothing registers on import. Register the elements once, at startup:
import '@nhic/rwds-css/rwds.css';
import { configureRwElements, defineRwComponents } from '@nhic/rwds-elements';
import { rw } from '@nhic/rwds-i18n/catalogs/rw';
configureRwElements({ catalogs: [rw] });
defineRwComponents();Or load the @nhic/rwds-elements/cdn bundle, which registers every element with all three languages.
Each element picks its built-in strings from the closest lang attribute.
