You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@public-ui/solid

Package Overview
Dependencies
Maintainers
0
Versions
349
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@public-ui/solid

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

2.2.7
Source
npm
Version published
Maintainers
0
Created
Source

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" />;

Keywords

accessibility

FAQs

Package last updated on 07 Mar 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