HasSizes
API reference › HTML Attribute › HasSizes
Used by 3 types
Provides an immutable API for the sizes attribute.
See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/link#sizes.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
sizes() | Sets the sizes attribute. | HasSizes |
Method details
Section titled “Method details”sizes()
Section titled “sizes() ”public function sizes(string|Stringable|UnitEnum|null $value): staticSets the sizes attribute.
Defines the icon size descriptors for the linked resource.
Parameters
| Parameter | Type | Description |
|---|---|---|
$value | string|Stringable|UnitEnum| | Icon size list or ‘any’ token, or null to remove the attribute. |
Returns
static: New instance with the updated sizes attribute.