Added two events for the sl-tab-group component.
sl-tab-show | Emitted when a tab is shown. (Tab Panel String) |
sl-tab-hide | Emitted when a tab is hidden. (Tab Panel String) |
Added two events for the sl-tab-group component.
sl-tab-show | Emitted when a tab is shown. (Tab Panel String) |
sl-tab-hide | Emitted when a tab is hidden. (Tab Panel String) |
Added the following events for drawer and dialog
sl-show | Emitted when the dialog opens. | |
sl-after-show | Emitted after the dialog opens and all animations are complete. | |
sl-hide | Emitted when the dialog closes. | |
sl-after-hide | Emitted after the dialog closes and all animations are complete. | |
And a new attribute, prevent_close: When the user attempts to close the dialog by clicking the close button, clicking the overlay, or pressing Escape, the dialog will remain open if this attribute is set to true.
Added textarea component, and all components have been updated to the latest version of Shoelace.
Hello everyone š, I want to provide an update on my Shoelace Package.
For everyone who is using it, this update was very much needed. I have rebuilt the docs, so it is now much easier to navigate and learn more about each component.
Updates include:
There was a bug when sometimes the single value for the select component was not working properly, as the value attribute was not added to the sl-select element in HTML. I added a fix so that the value attributes are added with JS for both single select and multiple select.
This update introduces a supercharged Input component: a powerful, highly configurable input element for your Toddle project. You can now build powerful forms with minimal effort using this input component that comes with built-in accessibility features right out of the box.
Input preview is not yet available. Visit official Shoealce input page for more details. For any questions, please reach out to me on Discord.
Added new attribute for button component.
TYPE
The type of button. Note that the default value is button instead of submit, which is opposite of how native <button> elements behave. When the type is submit, the button will submit the surrounding form.
Detail components now support four different events and two actions (Open and Hide Details) that can be triggered anywhere in your workflow.
New attribute: max-options-visible
The maximum number of selected options to show when multiple is true. After the maximum, ā+nā will be shown to indicate the number of additional items that are selected. Set to 0 to remove the limit. Default: 3
New component: copy-button-custom-icons. This one allows you to add any icon as a slot for copy, success, and error states.