UNPKG

@tohuhono/puck-rich-text

Version:

A puck component for rich text editing made for OberonCMS

53 lines 2.82 kB
import { LexicalEditor } from "lexical"; export declare const blockFormats: { readonly paragraph: { readonly label: "Paragaph"; readonly Icon: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>; }; readonly h1: { readonly label: "Heading 1"; readonly Icon: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>; }; readonly h2: { readonly label: "Heading 2"; readonly Icon: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>; }; readonly h3: { readonly label: "Heading 3"; readonly Icon: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>; }; readonly h4: { readonly label: "Heading 4"; readonly Icon: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>; }; readonly h5: { readonly label: "Heading 5"; readonly Icon: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>; }; readonly h6: { readonly label: "Heading 6"; readonly Icon: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>; }; readonly bullet: { readonly label: "Bulleted List"; readonly Icon: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>; }; readonly number: { readonly label: "Numbered List"; readonly Icon: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>; }; readonly quote: { readonly label: "Quote"; readonly Icon: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>; }; readonly code: { readonly label: "Code Block"; readonly Icon: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>; }; }; export declare function BlockFormatDropDown({ editor, blockType, disabled, }: { blockType: keyof typeof blockFormats; editor: LexicalEditor; disabled?: boolean; }): JSX.Element; //# sourceMappingURL=block-format-dropdown.d.ts.map