UNPKG

@arnelirobles/rnxjs

Version:

Minimalist Vanilla JS component system with reactive data binding.

10 lines (7 loc) 309 B
import { createComponent } from '../../utils/createComponent.js'; export function Container({ fluid = false, children = '' }) { const template = () => ` <div class="${fluid === 'true' ? 'container-fluid' : 'container'}" data-slot></div> `; return createComponent(template, { fluid, children }); }