-
Notifications
You must be signed in to change notification settings - Fork 20
widget.Button #68
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershacktoberfest-accepted
Description
Metadata
Metadata
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershacktoberfest-accepted
widget.Button
What are widgets
This is a new feature designed to make DomWizard even easier to use — just as originally intended. Widgets are pluggable, highly customizable, styled components that users can easily integrate into their projects. The goal is to speed up development while maintaining flexibility and control.
Button
The Button should be a pre-styled
buttonelement that allows for further customisation if the user desires. It must return a DomWizard element — nothing else should be returned.Inputs
text: stringcallback: functionstyles: object (optional)If an important input is missing, feel free to add it after
stylesand mark it as optional. Thetextwill be displayed on the button, thecallbackshould be invoked when the button is clicked, and any user-providedstylesshould take precedence over the default ones.