react-kanban-kit
Version:
A flexible and customizable Kanban board component for React applications, built with TypeScript and modern drag-and-drop functionality powered by Atlassian's pragmatic-drag-and-drop.
21 lines (20 loc) • 567 B
JavaScript
import { useKanbanContext } from "../../context/KanbanContext.es.js";
import { withPrefix } from "../../utils/getPrefix.es.js";
import { jsx } from "react/jsx-runtime";
const ColumnAdder = ({
renderColumnAdder
}) => {
const {
allowColumnAdder = true
} = useKanbanContext();
if (!allowColumnAdder)
return null;
return /* @__PURE__ */ jsx("div", {
className: withPrefix("column-adder"),
children: renderColumnAdder == null ? void 0 : renderColumnAdder()
});
};
export {
ColumnAdder as default
};
//# sourceMappingURL=ColumnAdder.es.js.map