# BaseInput

> Provides the base implementation for input elements.

[API reference](/docs/api/index.md) › [HTML Core](/docs/extensions/html-core/reference/index.md) › [Element](/docs/extensions/html-core/reference/element/index.md) › BaseInput

| abstract class | `UIAwesome\Html\Core\Element\BaseInput` |
| --- | --- |
| Extends | [`UIAwesome\Html\Core\Base\BaseTag`](/docs/extensions/html-core/reference/base/basetag/index.md) |
| Implements | [`UIAwesome\Html\Contracts\Form\FormControlInterface`](/docs/extensions/html-contracts/reference/form/formcontrolinterface/index.md), [`UIAwesome\Html\Contracts\RenderableInterface`](/docs/extensions/html-contracts/reference/renderableinterface/index.md) |
| Uses traits | [`UIAwesome\Html\Attribute\CanBeDisabled`](/docs/extensions/html-attribute/reference/canbedisabled/index.md), [`UIAwesome\Html\Attribute\Global\CanBeHidden`](/docs/extensions/html-attribute/reference/global/canbehidden/index.md), [`UIAwesome\Html\Attribute\Global\HasAccesskey`](/docs/extensions/html-attribute/reference/global/hasaccesskey/index.md), [`UIAwesome\Html\Attribute\Global\HasAria`](/docs/extensions/html-attribute/reference/global/hasaria/index.md), [`UIAwesome\Html\Mixin\HasAttributes`](/docs/extensions/html-mixin/reference/hasattributes/index.md), [`UIAwesome\Html\Attribute\Global\HasClass`](/docs/extensions/html-attribute/reference/global/hasclass/index.md), [`UIAwesome\Html\Attribute\Global\HasData`](/docs/extensions/html-attribute/reference/global/hasdata/index.md), [`UIAwesome\Html\Attribute\Global\HasDir`](/docs/extensions/html-attribute/reference/global/hasdir/index.md), [`UIAwesome\Html\Core\Element\Concern\HasElementBuilder`](/docs/extensions/html-core/reference/element/concern/haselementbuilder/index.md), [`UIAwesome\Html\Attribute\Global\HasEvents`](/docs/extensions/html-attribute/reference/global/hasevents/index.md), [`UIAwesome\Html\Attribute\Global\HasId`](/docs/extensions/html-attribute/reference/global/hasid/index.md), [`UIAwesome\Html\Attribute\Global\HasLang`](/docs/extensions/html-attribute/reference/global/haslang/index.md), [`UIAwesome\Html\Attribute\HasName`](/docs/extensions/html-attribute/reference/hasname/index.md), [`UIAwesome\Html\Mixin\HasPrefixCollection`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md), [`UIAwesome\Html\Attribute\Global\HasRole`](/docs/extensions/html-attribute/reference/global/hasrole/index.md), [`UIAwesome\Html\Attribute\Global\HasStyle`](/docs/extensions/html-attribute/reference/global/hasstyle/index.md), [`UIAwesome\Html\Mixin\HasSuffixCollection`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md), [`UIAwesome\Html\Mixin\HasTemplate`](/docs/extensions/html-mixin/reference/hastemplate/index.md), [`UIAwesome\Html\Attribute\Global\HasTitle`](/docs/extensions/html-attribute/reference/global/hastitle/index.md), [`UIAwesome\Html\Attribute\Global\HasTranslate`](/docs/extensions/html-attribute/reference/global/hastranslate/index.md), [`UIAwesome\Html\Attribute\HasType`](/docs/extensions/html-attribute/reference/hastype/index.md), [`UIAwesome\Html\Core\Event\HasAfterRun`](/docs/extensions/html-core/reference/event/hasafterrun/index.md), [`UIAwesome\Html\Core\Event\HasBeforeRun`](/docs/extensions/html-core/reference/event/hasbeforerun/index.md) |
| Source | [`src/Element/BaseInput.php`](https://github.com/ui-awesome/html-core/blob/main/src/Element/BaseInput.php#L39) |

17 subclasses:

- [`UIAwesome\Html\Form\AbstractInputDateTime`](/docs/extensions/html/reference/form/abstractinputdatetime/index.md)
- [`UIAwesome\Html\Form\InputCheckbox`](/docs/extensions/html/reference/form/inputcheckbox/index.md)
- [`UIAwesome\Html\Form\InputColor`](/docs/extensions/html/reference/form/inputcolor/index.md)
- [`UIAwesome\Html\Form\InputEmail`](/docs/extensions/html/reference/form/inputemail/index.md)
- [`UIAwesome\Html\Form\InputFile`](/docs/extensions/html/reference/form/inputfile/index.md)
- [`UIAwesome\Html\Form\InputHidden`](/docs/extensions/html/reference/form/inputhidden/index.md)
- [`UIAwesome\Html\Form\InputImage`](/docs/extensions/html/reference/form/inputimage/index.md)
- [`UIAwesome\Html\Form\InputNumber`](/docs/extensions/html/reference/form/inputnumber/index.md)
- [`UIAwesome\Html\Form\InputPassword`](/docs/extensions/html/reference/form/inputpassword/index.md)
- [`UIAwesome\Html\Form\InputRadio`](/docs/extensions/html/reference/form/inputradio/index.md)
- [`UIAwesome\Html\Form\InputRange`](/docs/extensions/html/reference/form/inputrange/index.md)
- [`UIAwesome\Html\Form\InputReset`](/docs/extensions/html/reference/form/inputreset/index.md)
- [`UIAwesome\Html\Form\InputSearch`](/docs/extensions/html/reference/form/inputsearch/index.md)
- [`UIAwesome\Html\Form\InputSubmit`](/docs/extensions/html/reference/form/inputsubmit/index.md)
- [`UIAwesome\Html\Form\InputTel`](/docs/extensions/html/reference/form/inputtel/index.md)
- [`UIAwesome\Html\Form\InputText`](/docs/extensions/html/reference/form/inputtext/index.md)
- [`UIAwesome\Html\Form\InputUrl`](/docs/extensions/html/reference/form/inputurl/index.md)

Provides the base implementation for input elements.

Builds input markup with attribute traits and template-driven prefix and suffix composition.

See also: <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input>.

## Properties

| Property | Type | Description | Defined by |
| --- | --- | --- | --- |
| <span id="property-attributes"></span>[`$attributes`](/docs/extensions/html-mixin/reference/hasattributes/index.md#property-attributes) protected | `mixed[]` | HTML attributes array used by the implementing class. Default: `[]`. | [`UIAwesome\Html\Mixin\HasAttributes`](/docs/extensions/html-mixin/reference/hasattributes/index.md) |
| <span id="property-prefix"></span>[`$prefix`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md#property-prefix) protected | `string` | Prefix content string assigned to the element. Default: `''`. | [`UIAwesome\Html\Mixin\HasPrefixCollection`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md) |
| <span id="property-prefixAttributes"></span>[`$prefixAttributes`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md#property-prefixAttributes) protected | `array` | HTML attributes array for the prefix element. Default: `[]`. | [`UIAwesome\Html\Mixin\HasPrefixCollection`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md) |
| <span id="property-prefixTag"></span>[`$prefixTag`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md#property-prefixTag) protected | `false\|`[`UnitEnum`](https://www.php.net/manual/en/class.unitenum.php) | Tag name for the prefix element, or `false` to disable. Default: `false`. | [`UIAwesome\Html\Mixin\HasPrefixCollection`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md) |
| <span id="property-suffix"></span>[`$suffix`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md#property-suffix) protected | `string` | Suffix content string assigned to the element. Default: `''`. | [`UIAwesome\Html\Mixin\HasSuffixCollection`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md) |
| <span id="property-suffixAttributes"></span>[`$suffixAttributes`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md#property-suffixAttributes) protected | `array` | HTML attributes array for the suffix element. Default: `[]`. | [`UIAwesome\Html\Mixin\HasSuffixCollection`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md) |
| <span id="property-suffixTag"></span>[`$suffixTag`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md#property-suffixTag) protected | `false\|`[`UnitEnum`](https://www.php.net/manual/en/class.unitenum.php) | Tag name for the suffix element, or `false` to disable. Default: `false`. | [`UIAwesome\Html\Mixin\HasSuffixCollection`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md) |
| <span id="property-template"></span>[`$template`](/docs/extensions/html-mixin/reference/hastemplate/index.md#property-template) protected | `string` | Template string used for constructing the HTML tag. Default: `''`. | [`UIAwesome\Html\Mixin\HasTemplate`](/docs/extensions/html-mixin/reference/hastemplate/index.md) |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| <span id="method-__construct"></span>[`__construct()`](/docs/extensions/html-core/reference/base/basetag/index.md#method-__construct) final | Initializes a new tag instance. | [`UIAwesome\Html\Core\Base\BaseTag`](/docs/extensions/html-core/reference/base/basetag/index.md) |
| <span id="method-__toString"></span>[`__toString()`](/docs/extensions/html-core/reference/base/basetag/index.md#method-__toString) | Returns the rendered tag string. | [`UIAwesome\Html\Core\Base\BaseTag`](/docs/extensions/html-core/reference/base/basetag/index.md) |
| <span id="method-accesskey"></span>[`accesskey()`](/docs/extensions/html-attribute/reference/global/hasaccesskey/index.md#method-accesskey) | Sets the `accesskey` attribute. | [`UIAwesome\Html\Attribute\Global\HasAccesskey`](/docs/extensions/html-attribute/reference/global/hasaccesskey/index.md) |
| <span id="method-addAriaAttribute"></span>[`addAriaAttribute()`](/docs/extensions/html-attribute/reference/global/hasaria/index.md#method-addAriaAttribute) | Sets an `aria-*` attribute. | [`UIAwesome\Html\Attribute\Global\HasAria`](/docs/extensions/html-attribute/reference/global/hasaria/index.md) |
| <span id="method-addAttribute"></span>[`addAttribute()`](/docs/extensions/html-mixin/reference/hasattributes/index.md#method-addAttribute) | Adds or updates a single HTML attribute for the element. | [`UIAwesome\Html\Mixin\HasAttributes`](/docs/extensions/html-mixin/reference/hasattributes/index.md) |
| <span id="method-addDataAttribute"></span>[`addDataAttribute()`](/docs/extensions/html-attribute/reference/global/hasdata/index.md#method-addDataAttribute) | Sets a `data-*` attribute. | [`UIAwesome\Html\Attribute\Global\HasData`](/docs/extensions/html-attribute/reference/global/hasdata/index.md) |
| <span id="method-addEvent"></span>[`addEvent()`](/docs/extensions/html-attribute/reference/global/hasevents/index.md#method-addEvent) | Sets an `on*` event attribute. | [`UIAwesome\Html\Attribute\Global\HasEvents`](/docs/extensions/html-attribute/reference/global/hasevents/index.md) |
| <span id="method-ariaAttributes"></span>[`ariaAttributes()`](/docs/extensions/html-attribute/reference/global/hasaria/index.md#method-ariaAttributes) | Sets multiple `aria-*` attributes. | [`UIAwesome\Html\Attribute\Global\HasAria`](/docs/extensions/html-attribute/reference/global/hasaria/index.md) |
| <span id="method-attributes"></span>[`attributes()`](/docs/extensions/html-mixin/reference/hasattributes/index.md#method-attributes) | Adds or updates multiple HTML attributes for the element. | [`UIAwesome\Html\Mixin\HasAttributes`](/docs/extensions/html-mixin/reference/hasattributes/index.md) |
| <span id="method-class"></span>[`class()`](/docs/extensions/html-attribute/reference/global/hasclass/index.md#method-class) | Sets the `class` attribute. | [`UIAwesome\Html\Attribute\Global\HasClass`](/docs/extensions/html-attribute/reference/global/hasclass/index.md) |
| <span id="method-config"></span>[`config()`](/docs/extensions/html-core/reference/base/basetag/index.md#method-config) | Applies application-scoped config recipes to this tag. | [`UIAwesome\Html\Core\Base\BaseTag`](/docs/extensions/html-core/reference/base/basetag/index.md) |
| <span id="method-dataAttributes"></span>[`dataAttributes()`](/docs/extensions/html-attribute/reference/global/hasdata/index.md#method-dataAttributes) | Sets multiple `data-*` attributes. | [`UIAwesome\Html\Attribute\Global\HasData`](/docs/extensions/html-attribute/reference/global/hasdata/index.md) |
| <span id="method-dir"></span>[`dir()`](/docs/extensions/html-attribute/reference/global/hasdir/index.md#method-dir) | Sets the `dir` attribute. | [`UIAwesome\Html\Attribute\Global\HasDir`](/docs/extensions/html-attribute/reference/global/hasdir/index.md) |
| <span id="method-disabled"></span>[`disabled()`](/docs/extensions/html-attribute/reference/canbedisabled/index.md#method-disabled) | Sets the `disabled` attribute. | [`UIAwesome\Html\Attribute\CanBeDisabled`](/docs/extensions/html-attribute/reference/canbedisabled/index.md) |
| <span id="method-events"></span>[`events()`](/docs/extensions/html-attribute/reference/global/hasevents/index.md#method-events) | Sets multiple `on*` event attributes. | [`UIAwesome\Html\Attribute\Global\HasEvents`](/docs/extensions/html-attribute/reference/global/hasevents/index.md) |
| [`form()`](#method-form) | Sets the `form` attribute. | `BaseInput` |
| <span id="method-getAttribute"></span>[`getAttribute()`](/docs/extensions/html-mixin/reference/hasattributes/index.md#method-getAttribute) | Returns the value of a single HTML attribute. | [`UIAwesome\Html\Mixin\HasAttributes`](/docs/extensions/html-mixin/reference/hasattributes/index.md) |
| <span id="method-getAttributes"></span>[`getAttributes()`](/docs/extensions/html-mixin/reference/hasattributes/index.md#method-getAttributes) | Returns the `array` of HTML attributes for the element. | [`UIAwesome\Html\Mixin\HasAttributes`](/docs/extensions/html-mixin/reference/hasattributes/index.md) |
| <span id="method-getPrefix"></span>[`getPrefix()`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md#method-getPrefix) | Returns the prefix content string assigned to the element. | [`UIAwesome\Html\Mixin\HasPrefixCollection`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md) |
| <span id="method-getPrefixAttribute"></span>[`getPrefixAttribute()`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md#method-getPrefixAttribute) | Returns the value of a single HTML attribute for the prefix element attributes. | [`UIAwesome\Html\Mixin\HasPrefixCollection`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md) |
| <span id="method-getPrefixAttributes"></span>[`getPrefixAttributes()`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md#method-getPrefixAttributes) | Returns the `array` of HTML attributes for the prefix element. | [`UIAwesome\Html\Mixin\HasPrefixCollection`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md) |
| <span id="method-getPrefixTag"></span>[`getPrefixTag()`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md#method-getPrefixTag) | Returns the tag name for the prefix element. | [`UIAwesome\Html\Mixin\HasPrefixCollection`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md) |
| <span id="method-getSuffix"></span>[`getSuffix()`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md#method-getSuffix) | Returns the suffix content string assigned to the element. | [`UIAwesome\Html\Mixin\HasSuffixCollection`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md) |
| <span id="method-getSuffixAttribute"></span>[`getSuffixAttribute()`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md#method-getSuffixAttribute) | Returns the value of a single HTML attribute for the suffix element attributes. | [`UIAwesome\Html\Mixin\HasSuffixCollection`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md) |
| <span id="method-getSuffixAttributes"></span>[`getSuffixAttributes()`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md#method-getSuffixAttributes) | Returns the `array` of HTML attributes for the suffix element. | [`UIAwesome\Html\Mixin\HasSuffixCollection`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md) |
| <span id="method-getSuffixTag"></span>[`getSuffixTag()`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md#method-getSuffixTag) | Returns the tag name for the suffix element. | [`UIAwesome\Html\Mixin\HasSuffixCollection`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md) |
| <span id="method-getTemplate"></span>[`getTemplate()`](/docs/extensions/html-mixin/reference/hastemplate/index.md#method-getTemplate) | Returns the template assigned to the element. | [`UIAwesome\Html\Mixin\HasTemplate`](/docs/extensions/html-mixin/reference/hastemplate/index.md) |
| <span id="method-hidden"></span>[`hidden()`](/docs/extensions/html-attribute/reference/global/canbehidden/index.md#method-hidden) | Sets the `hidden` attribute. | [`UIAwesome\Html\Attribute\Global\CanBeHidden`](/docs/extensions/html-attribute/reference/global/canbehidden/index.md) |
| <span id="method-id"></span>[`id()`](/docs/extensions/html-attribute/reference/global/hasid/index.md#method-id) | Sets the `id` attribute. | [`UIAwesome\Html\Attribute\Global\HasId`](/docs/extensions/html-attribute/reference/global/hasid/index.md) |
| <span id="method-lang"></span>[`lang()`](/docs/extensions/html-attribute/reference/global/haslang/index.md#method-lang) | Sets the `lang` attribute. | [`UIAwesome\Html\Attribute\Global\HasLang`](/docs/extensions/html-attribute/reference/global/haslang/index.md) |
| <span id="method-name"></span>[`name()`](/docs/extensions/html-attribute/reference/hasname/index.md#method-name) | Sets the `name` attribute. | [`UIAwesome\Html\Attribute\HasName`](/docs/extensions/html-attribute/reference/hasname/index.md) |
| <span id="method-prefix"></span>[`prefix()`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md#method-prefix) | Sets the prefix content string for the element. | [`UIAwesome\Html\Mixin\HasPrefixCollection`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md) |
| <span id="method-prefixAttributes"></span>[`prefixAttributes()`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md#method-prefixAttributes) | Sets the HTML attributes for the prefix element. | [`UIAwesome\Html\Mixin\HasPrefixCollection`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md) |
| <span id="method-prefixClass"></span>[`prefixClass()`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md#method-prefixClass) | Adds a CSS class to the prefix element attributes. | [`UIAwesome\Html\Mixin\HasPrefixCollection`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md) |
| <span id="method-prefixRemoveAttribute"></span>[`prefixRemoveAttribute()`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md#method-prefixRemoveAttribute) | Removes a specific HTML attribute from the prefix element. | [`UIAwesome\Html\Mixin\HasPrefixCollection`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md) |
| <span id="method-prefixSetAttribute"></span>[`prefixSetAttribute()`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md#method-prefixSetAttribute) | Sets a single HTML attribute for the prefix element. | [`UIAwesome\Html\Mixin\HasPrefixCollection`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md) |
| <span id="method-prefixTag"></span>[`prefixTag()`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md#method-prefixTag) | Sets the tag name for the prefix element. | [`UIAwesome\Html\Mixin\HasPrefixCollection`](/docs/extensions/html-mixin/reference/hasprefixcollection/index.md) |
| <span id="method-removeAriaAttribute"></span>[`removeAriaAttribute()`](/docs/extensions/html-attribute/reference/global/hasaria/index.md#method-removeAriaAttribute) | Removes an `aria-*` attribute. | [`UIAwesome\Html\Attribute\Global\HasAria`](/docs/extensions/html-attribute/reference/global/hasaria/index.md) |
| <span id="method-removeAttribute"></span>[`removeAttribute()`](/docs/extensions/html-mixin/reference/hasattributes/index.md#method-removeAttribute) | Removes a specific HTML attribute from the element. | [`UIAwesome\Html\Mixin\HasAttributes`](/docs/extensions/html-mixin/reference/hasattributes/index.md) |
| <span id="method-removeDataAttribute"></span>[`removeDataAttribute()`](/docs/extensions/html-attribute/reference/global/hasdata/index.md#method-removeDataAttribute) | Removes a `data-*` attribute. | [`UIAwesome\Html\Attribute\Global\HasData`](/docs/extensions/html-attribute/reference/global/hasdata/index.md) |
| <span id="method-removeEvent"></span>[`removeEvent()`](/docs/extensions/html-attribute/reference/global/hasevents/index.md#method-removeEvent) | Removes an `on*` event attribute. | [`UIAwesome\Html\Attribute\Global\HasEvents`](/docs/extensions/html-attribute/reference/global/hasevents/index.md) |
| <span id="method-render"></span>[`render()`](/docs/extensions/html-core/reference/base/basetag/index.md#method-render) final | Renders the tag with lifecycle hooks. | [`UIAwesome\Html\Core\Base\BaseTag`](/docs/extensions/html-core/reference/base/basetag/index.md) |
| <span id="method-replaceAttributes"></span>[`replaceAttributes()`](/docs/extensions/html-mixin/reference/hasattributes/index.md#method-replaceAttributes) | Replaces all HTML attributes for the element. | [`UIAwesome\Html\Mixin\HasAttributes`](/docs/extensions/html-mixin/reference/hasattributes/index.md) |
| <span id="method-role"></span>[`role()`](/docs/extensions/html-attribute/reference/global/hasrole/index.md#method-role) | Sets the `role` attribute. | [`UIAwesome\Html\Attribute\Global\HasRole`](/docs/extensions/html-attribute/reference/global/hasrole/index.md) |
| <span id="method-style"></span>[`style()`](/docs/extensions/html-attribute/reference/global/hasstyle/index.md#method-style) | Sets the `style` attribute. | [`UIAwesome\Html\Attribute\Global\HasStyle`](/docs/extensions/html-attribute/reference/global/hasstyle/index.md) |
| <span id="method-suffix"></span>[`suffix()`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md#method-suffix) | Sets the suffix content string for the element. | [`UIAwesome\Html\Mixin\HasSuffixCollection`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md) |
| <span id="method-suffixAttributes"></span>[`suffixAttributes()`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md#method-suffixAttributes) | Sets the HTML attributes for the suffix element. | [`UIAwesome\Html\Mixin\HasSuffixCollection`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md) |
| <span id="method-suffixClass"></span>[`suffixClass()`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md#method-suffixClass) | Adds a CSS class to the suffix element attributes. | [`UIAwesome\Html\Mixin\HasSuffixCollection`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md) |
| <span id="method-suffixRemoveAttribute"></span>[`suffixRemoveAttribute()`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md#method-suffixRemoveAttribute) | Removes a specific HTML attribute from the suffix element. | [`UIAwesome\Html\Mixin\HasSuffixCollection`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md) |
| <span id="method-suffixSetAttribute"></span>[`suffixSetAttribute()`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md#method-suffixSetAttribute) | Sets a single HTML attribute for the suffix element. | [`UIAwesome\Html\Mixin\HasSuffixCollection`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md) |
| <span id="method-suffixTag"></span>[`suffixTag()`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md#method-suffixTag) | Sets the tag type for the suffix element. | [`UIAwesome\Html\Mixin\HasSuffixCollection`](/docs/extensions/html-mixin/reference/hassuffixcollection/index.md) |
| <span id="method-tag"></span>[`tag()`](/docs/extensions/html-core/reference/base/basetag/index.md#method-tag) static | Creates and configures a new tag instance. | [`UIAwesome\Html\Core\Base\BaseTag`](/docs/extensions/html-core/reference/base/basetag/index.md) |
| <span id="method-template"></span>[`template()`](/docs/extensions/html-mixin/reference/hastemplate/index.md#method-template) | Sets the template string for the element. | [`UIAwesome\Html\Mixin\HasTemplate`](/docs/extensions/html-mixin/reference/hastemplate/index.md) |
| <span id="method-title"></span>[`title()`](/docs/extensions/html-attribute/reference/global/hastitle/index.md#method-title) | Sets the `title` attribute. | [`UIAwesome\Html\Attribute\Global\HasTitle`](/docs/extensions/html-attribute/reference/global/hastitle/index.md) |
| <span id="method-translate"></span>[`translate()`](/docs/extensions/html-attribute/reference/global/hastranslate/index.md#method-translate) | Sets the `translate` attribute. | [`UIAwesome\Html\Attribute\Global\HasTranslate`](/docs/extensions/html-attribute/reference/global/hastranslate/index.md) |
| <span id="method-type"></span>[`type()`](/docs/extensions/html-attribute/reference/hastype/index.md#method-type) | Sets the `type` attribute. | [`UIAwesome\Html\Attribute\HasType`](/docs/extensions/html-attribute/reference/hastype/index.md) |
| <span id="method-afterRun"></span>[`afterRun()`](/docs/extensions/html-core/reference/event/hasafterrun/index.md#method-afterRun) protected | Post-processes rendered output. | [`UIAwesome\Html\Core\Event\HasAfterRun`](/docs/extensions/html-core/reference/event/hasafterrun/index.md) |
| <span id="method-beforeRun"></span>[`beforeRun()`](/docs/extensions/html-core/reference/event/hasbeforerun/index.md#method-beforeRun) protected | Validates state before rendering. | [`UIAwesome\Html\Core\Event\HasBeforeRun`](/docs/extensions/html-core/reference/event/hasbeforerun/index.md) |
| <span id="method-buildElement"></span>[`buildElement()`](/docs/extensions/html-core/reference/element/concern/haselementbuilder/index.md#method-buildElement) protected | Builds element output from content and template tokens. | [`UIAwesome\Html\Core\Element\Concern\HasElementBuilder`](/docs/extensions/html-core/reference/element/concern/haselementbuilder/index.md) |
| [`getTag()`](#method-getTag) protected abstract | Returns the tag instance representing the void element. | `BaseInput` |
| [`loadDefault()`](#method-loadDefault) protected | Returns class-level default configuration for input elements. | `BaseInput` |
| <span id="method-run"></span>[`run()`](/docs/extensions/html-core/reference/base/basetag/index.md#method-run) protected abstract | Renders the core HTML output for the tag. | [`UIAwesome\Html\Core\Base\BaseTag`](/docs/extensions/html-core/reference/base/basetag/index.md) |

## Method details

### form() <span id="method-form"></span>

```php
public function form(string|Stringable|UnitEnum|null $value): static
```

Sets the `form` attribute.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `string\|`[`Stringable`](https://www.php.net/manual/en/class.stringable.php)`\|`[`UnitEnum`](https://www.php.net/manual/en/class.unitenum.php)`\|null` | Form ID, or `null` to remove the attribute. |

**Returns**

`static`: New instance with the updated `form` attribute.

### getTag() <span id="method-getTag"></span>

```php
abstract protected function getTag(): BackedEnum
```

Returns the tag instance representing the void element.

**Returns**

[`BackedEnum`](https://www.php.net/manual/en/class.backedenum.php): Tag instance for the void element.

### loadDefault() <span id="method-loadDefault"></span>

```php
protected function loadDefault(): array
```

Returns class-level default configuration for input elements.

**Returns**

`array`: Default configuration array with method calls as keys.