@1771technologies/lytenyte-pro
Version:
Blazingly fast headless React data grid with 100s of features.
15 lines (14 loc) • 669 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { PillContainer } from "./container.js";
import { PillRowExpander } from "./expander.js";
import { PillItem } from "./item.js";
import { PillLabel } from "./label.js";
import { PillRow } from "./pill-row.js";
export function PillRowDefault(row, ctx) {
const orientation = ctx.orientation;
return (
// Label
_jsxs(PillRow, { row: row, children: [_jsx(PillLabel, { row: row }), _jsx(PillContainer, { children: row.pills.map((x) => {
return _jsx(PillItem, { item: x }, x.id);
}) }), orientation === "horizontal" && _jsx(PillRowExpander, {})] }));
}