@razen-core/zenweb
Version:
A minimalist TypeScript framework for building reactive web applications with no virtual DOM
66 lines • 1.34 kB
JavaScript
/**
* ZenWeb Table Elements
* Table-related elements
*/
import { createElement } from '../dom.js';
/**
* Table container
*/
export function table(props, ...children) {
return createElement('table', props, ...children);
}
/**
* Table head
*/
export function thead(props, ...children) {
return createElement('thead', props, ...children);
}
/**
* Table body
*/
export function tbody(props, ...children) {
return createElement('tbody', props, ...children);
}
/**
* Table footer
*/
export function tfoot(props, ...children) {
return createElement('tfoot', props, ...children);
}
/**
* Table row
*/
export function tr(props, ...children) {
return createElement('tr', props, ...children);
}
/**
* Table header cell
*/
export function th(props, ...content) {
return createElement('th', props, ...content);
}
/**
* Table data cell
*/
export function td(props, ...content) {
return createElement('td', props, ...content);
}
/**
* Table caption
*/
export function caption(props, ...content) {
return createElement('caption', props, ...content);
}
/**
* Column group
*/
export function colgroup(props, ...children) {
return createElement('colgroup', props, ...children);
}
/**
* Column
*/
export function col(props) {
return createElement('col', props);
}
//# sourceMappingURL=table.js.map