bs-elements
Version:
Lit-based Web Components using Bootstrap
21 lines (16 loc) • 411 B
JavaScript
import css from './css.js'
import bsElements from './src/bsElements.js'
import { fromString } from './style.js'
function bootstrap ({ register } = {}) {
const style = fromString(css)
return bsElements({ register, style })
}
function documentStyle () {
const style = document.createElement('style')
style.textContent = css
document.head.appendChild(style)
}
export {
bootstrap,
documentStyle
}