UNPKG

@rtdui/editor

Version:

React rich text editor based on tiptap

37 lines (33 loc) 782 B
'use client'; 'use strict'; var jsxRuntime = require('react/jsx-runtime'); var React = require('react'); var clsx = require('clsx'); const defaultProps = { sticky: true }; const ToolbarControl = React.forwardRef( (props, ref) => { const { className, children, sticky, ...others } = { ...defaultProps, ...props }; return /* @__PURE__ */ jsxRuntime.jsx( "div", { className: clsx( "navbar min-h-0", "flex flex-wrap gap-2", { "sticky top-0 z-10": sticky }, className ), ref, ...others, children } ); } ); ToolbarControl.displayName = "@rtdui/editor/ToolbarControl"; exports.ToolbarControl = ToolbarControl; //# sourceMappingURL=ToolbarControl.cjs.map