diff --git a/src/Components/Forms/Button.php b/src/Components/Forms/Button.php index aba811ee..cf74e2c4 100644 --- a/src/Components/Forms/Button.php +++ b/src/Components/Forms/Button.php @@ -10,6 +10,7 @@ use Livewire\Component; use Livewire\Features\SupportAttributes\AttributeCollection; use T73biz\LwBits\Components\GlobalAttributesTrait; +use T73biz\LwBits\Exceptions\InvalidAttributeException; /** * Class Button @@ -18,6 +19,119 @@ class Button extends Component { use GlobalAttributesTrait; + /** + * This Boolean attribute specifies that the button should have input focus when the page loads. Only one + * element in a document can have this attribute. + */ + public bool $autofocus = false; + + /** + * This Boolean attribute prevents the user from interacting with the button: it cannot be pressed or focused. + */ + public bool $disabled = false; + + /** + * The
element to associate the button with (its form owner). The value of this attribute must be + * the id of a in the same document. (If this attribute is not set, the