UNPKG

slate-react

Version:

Tools for building completely customizable richtext editors with React.

10 lines 337 B
/** * Get the current `selected` state of an element. * * Set `suppressThrow` to return `false` instead of throwing when the element * can no longer be found in the editor. */ export declare const useSelected: ({ suppressThrow, }?: { suppressThrow?: boolean | undefined; }) => boolean; //# sourceMappingURL=use-selected.d.ts.map