UNPKG

json-joy

Version:

Collection of libraries for building collaborative editing apps.

22 lines (21 loc) 651 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Spoiler = void 0; const tslib_1 = require("tslib"); // biome-ignore lint: React is used for JSX const React = tslib_1.__importStar(require("react")); const nano_theme_1 = require("nano-theme"); const blockClass = (0, nano_theme_1.rule)({ bg: '#222', col: 'transparent', bdrad: 'calc(min(2px, 0.15em))', '&:hover': { col: 'inherit', bg: 'rgba(0,0,0,.16)', }, }); const Spoiler = (props) => { const { children } = props; return React.createElement("span", { className: blockClass }, children); }; exports.Spoiler = Spoiler;