@arnelirobles/rnxjs
Version:
Minimalist Vanilla JS component system with reactive data binding.
10 lines (7 loc) • 426 B
JavaScript
import { createComponent } from '../../utils/createComponent.js';
export function Row({ children = '', justify = '', align = '', noGutters = false }) {
const template = () => `
<div class="row ${justify ? 'justify-content-' + justify : ''} ${align ? 'align-items-' + align : ''} ${noGutters === 'true' ? 'g-0' : ''}" data-slot></div>
`;
return createComponent(template, { children, justify, align, noGutters });
}