addClass("btn"); $button->setValue("Click me"); echo $button->getHtml(); ?>
addClass("btn"); $button->setAttribute("href", "https://www.example.com"); $button->setValue("Visit Site"); echo $button->getHtml(); ?>This code will create an anchor button with class "btn", href as "https://www.example.com" and value "Visit Site". These examples are very basic and can be further customized as per the requirement. The CommonButton component belongs to the UI library, which provides various reusable components to create user interfaces.