UNPKG

@udus/notion-renderer

Version:
7 lines (6 loc) 667 B
import { jsx as _jsx } from "react/jsx-runtime"; export const Checkbox = ({ checked }) => { return checked ? _jsx(CheckedBox, {}) : _jsx(UnCheckBox, {}); }; export const UnCheckBox = () => (_jsx("span", { className: "notion-checkbox", children: _jsx("svg", { viewBox: "0 0 16 16", children: _jsx("path", { d: "M1.5,1.5 L1.5,14.5 L14.5,14.5 L14.5,1.5 L1.5,1.5 Z M0,0 L16,0 L16,16 L0,16 L0,0 Z" }) }) })); export const CheckedBox = () => (_jsx("span", { className: "notion-checkbox checked", children: _jsx("svg", { viewBox: "0 0 14 14", children: _jsx("polygon", { points: "5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039" }) }) }));