table function

BloomNode table({
  1. required List<BloomNode> children,
  2. String extraClassName = '',
})

Semantic <table> wrapper container primitive.

Implementation

BloomNode table({
  required List<BloomNode> children,
  String extraClassName = '',
}) {
  return Div(
    className: 'relative w-full overflow-x-auto rounded-[var(--radius-md)] border border-[var(--border)]',
    children: [
      El(
        'table',
        className: cn(['w-full caption-bottom text-sm text-[var(--text)]', extraClassName]),
        children: children,
      ),
    ],
  );
}