React 19 framework adapter for KoliBri - The accessible HTML-Standard.
npm install @public-ui/react-v19





!contributors
Provide an adapter for React to use the KoliBri components.
Install the adapter with npm, pnpm or yarn:
``bash`
npm i @public-ui/react-v19
pnpm i @public-ui/react-v19
yarn add @public-ui/react-v19
First, initialize KoliBri with a theme and create a React root:
`ts
import { defineCustomElements } from '@public-ui/components/loader';
import { register } from '@public-ui/components';
import { DEFAULT } from '@public-ui/theme-default';
register(DEFAULT, defineCustomElements)
.then(() => {
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
);
})
.catch((error) => {
/ Handle errors /
});
`
Then, you can import any component from @public-ui/react-v19 and render it within React components:
`tsx
import React from 'react';
import type { FC } from 'react';
import { KolButton } from '@public-ui/react-v19';
export default (): FC =>
``
For available design tokens see the default theme README.