Socket
Book a DemoInstallSign in
Socket

@public-ui/react

Package Overview
Dependencies
Maintainers
2
Versions
432
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@public-ui/react

React framework adapter for KoliBri - The accessible HTML-Standard.

latest
Source
npmnpm
Version
3.0.5
Version published
Weekly downloads
1.3K
-23.84%
Maintainers
2
Weekly downloads
 
Created
Source

KoliBri - React-Adapter

npm license downloads issues pull requests size contributors

Motivation

Provide an adapter for React to use the KoliBri components.

Installation

Install the adapter with npm, pnpm or yarn:

npm i @public-ui/react
pnpm i @public-ui/react
yarn add @public-ui/react

Usage

First, initialize KoliBri with a theme and create a React root:

import { defineCustomElements } from '@public-ui/components/dist/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(
      <React.StrictMode>
        <App />
      </React.StrictMode>
    );
  })
  .catch((error) => {
    /* Handle errors */
  });

Then, you can import any component from @public-ui/react and render it within React components:

import React from 'react';
import type { FC } from 'react';
import { KolButton } from '@public-ui/react';

export default (): FC => <KolButton _label="Hello World" />;

For available design tokens see the default theme README.

Keywords

accessibility

FAQs

Package last updated on 08 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts