45.0.6 • Published 4 months ago
@udecode/plate-toggle v45.0.6
Plate toggle plugin
This package implements the toggle plugin for Plate. It's similar to the indent list plugin, in that it relies on the indent of siblings.
Documentation
Check out Toggle.
Ideas to improve this plugin
- Adding an option
initialValue
of opentoggleIds
and a callbackonChange
, for instance to store the state of open toggles in local storage and remember the state upon browser refresh. - Adding an option
defaultOpen
. Currently, toggles are closed on initial rendering. - Adding an option to specify how to get the indent value of elements, right now we are relying on this being the default
KEY_ELEMENT
from theindent
plugin - An option to specify how to get the id of elements, right now we are using the default id attribute from the
node-id
plugin. - Adding a placeholder below the toggle, like Notion does, when the toggle is expanded without any elements below.
- Make toggle button more accessible
- When indenting an element right of a closed toggle, it becomes hidden. This makes sense, but a nicer UI would be to open the toggle in that case, like Notion does.
License
45.0.6
4 months ago
44.0.0
4 months ago
43.0.5
5 months ago
43.0.3
5 months ago
43.0.0
5 months ago
42.0.0
5 months ago
41.0.0
6 months ago
40.0.0
7 months ago
39.0.0
9 months ago
38.0.1
9 months ago
38.0.0
9 months ago
37.0.0
10 months ago
36.3.6
11 months ago
36.0.0
11 months ago
34.0.0
1 year ago
33.0.2
1 year ago
33.0.0
1 year ago
32.0.0
1 year ago
31.4.0
1 year ago
31.1.0
1 year ago
31.0.0
1 year ago
30.9.2
1 year ago
30.5.2
1 year ago
30.5.3
1 year ago
30.4.5
1 year ago
30.3.2
1 year ago
30.3.1
1 year ago
30.3.0
1 year ago