🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

@public-ui/solid

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
k

@public-ui/solid

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

2.2.10
lts
latest
v2-latest
Version published
Weekly downloads
144
-70.31%
Maintainers
2
Weekly downloads
 
Created
Issues
176

KoliBri - Solid-Adapter

npm license downloads issues pull requests size contributors

Motivation

Provide an adapter for SolidJS to use the KoliBri components.

Installation

You can install the adapter with npm, pnpm or yarn:

npm i -g @public-ui/solid
pnpm i -g @public-ui/solid
yarn add -g @public-ui/solid

Usage

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

import { defineCustomElements } from '@public-ui/components/dist/loader';
import { register } from '@public-ui/components';
import { DEFAULT } from '@public-ui/solid';

register(DEFAULT, defineCustomElements)
	.then(() => {
		const htmlDivElement: HTMLDivElement | null = document.querySelector('div#app');
		if (htmlDivElement instanceof HTMLDivElement) {
			render(() => <AppComponent />, htmlDivElement);
		}
	})
	.catch(console.warn);

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

import { Component } from 'solid-js';
import { KolButton } from '@public-ui/solid';

export const AppComponent: Component = () => <KolButton _label="Hello World" />;

FAQs

Package last updated on 25 Apr 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