Skip to content
PHP Ecosystem
Explore

HasSizes

API reference › HTML Attribute › HasSizes

traitUIAwesome\Html\Attribute\HasSizes
Sourcesrc/HasSizes.php
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.

MethodDescriptionDefined by
sizes()Sets the sizes attribute.HasSizes
public function sizes(string|Stringable|UnitEnum|null $value): static

Sets the sizes attribute.

Defines the icon size descriptors for the linked resource.

Parameters

ParameterTypeDescription
$valuestring|Stringable|UnitEnum|nullIcon size list or ‘any’ token, or null to remove the attribute.

Returns

static: New instance with the updated sizes attribute.