🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more
Socket
Book a DemoInstallSign in
Socket

@public-ui/hydrate

Package Overview
Dependencies
Maintainers
2
Versions
364
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@public-ui/hydrate

Hydrate function for KoliBri - The accessible HTML-Standard.

latest
Source
npmnpm
Version
3.0.7
Version published
Maintainers
2
Created
Source

KoliBri - Hydrate-Adapter

npm license downloads issues pull requests size contributors

Motivation

Provide an adapter for Server Side Rendering of KoliBri components.

⚠️ Hydrate support is currently considered experimental.

Installation

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

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

Usage

Call the renderToString method and pass it an HTML string containing KoliBri component tags. The method will return a Promise that resolves with an object containing the hydrated HTML.

import { renderToString } from '@public-ui/hydrate';

const inputHtml = `<kol-button _label="Hello World"_></kol-button>`;
const { html } = await renderToString(inputHtml);

Refer to the default theme README for information on customizing the output.

Keywords

accessibility

FAQs

Package last updated on 17 Oct 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