Skip to content

widget.Button #68

Description

@lindelwa122

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 button element that allows for further customisation if the user desires. It must return a DomWizard element — nothing else should be returned.

Inputs

  • text: string
  • callback: function
  • styles: object (optional)

If an important input is missing, feel free to add it after styles and mark it as optional. The text will be displayed on the button, the callback should be invoked when the button is clicked, and any user-provided styles should take precedence over the default ones.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions