@kkna/preset-openheart
v0.0.4
Published
OpenHeart Preset for [KKna](https://github.com/importantimport/kkna).
Downloads
6
Readme
@kkna/preset-openheart
OpenHeart Preset for KKna.
Usage
NPM
install
# npm
npm install @kkna/preset-openheart
# yarn
yarn add @kkna/preset-openheart
# pnpm
pnpm install @kkna/preset-openheart
# bun
bun install @kkna/preset-openheart
use
import { provider } from '@kkna/context'
import { openheart } from '@kkna/preset-openheart'
const provide = provider(document.body, {
initialValue: {
presets: [
openheart({ endpoint: 'https://api.openheart.fyi' }),
],
},
})
provide.hostConnected()
License
MIT