Skip to content

Commit a501e60

Browse files
authored
chore(richtext-slate): exports useElementButton, useLeafButton (#10047)
Exports `useElementButton` and `useLeafButton` from the Slate package for custom Slate components.
1 parent 6bba7be commit a501e60

File tree

1 file changed

+2
-0
lines changed
  • packages/richtext-slate/src/exports/client

1 file changed

+2
-0
lines changed

packages/richtext-slate/src/exports/client/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ export { StrikethroughLeaf } from '../../field/leaves/strikethrough/Strikethroug
6161
export { UnderlineLeafButton } from '../../field/leaves/underline/LeafButton.js'
6262
export { UnderlineLeaf } from '../../field/leaves/underline/Underline/index.js'
6363

64+
export { useElementButton } from '../../field/providers/ElementButtonProvider.js'
6465
export { useElement } from '../../field/providers/ElementProvider.js'
66+
export { useLeafButton } from '../../field/providers/LeafButtonProvider.js'
6567
export { useLeaf } from '../../field/providers/LeafProvider.js'
6668
export { useSlatePlugin } from '../../utilities/useSlatePlugin.js'

0 commit comments

Comments
 (0)