# SvgAttribute

> Represents standardized attribute names for the SVG <svg> element.

[API reference](/docs/api/index.md) › [HTML SVG](/docs/extensions/html-svg/reference/index.md) › [Values](/docs/extensions/html-svg/reference/values/index.md) › SvgAttribute

| enum | `UIAwesome\Html\Svg\Values\SvgAttribute` |
| --- | --- |
| Backed by | `string` |
| Source | [`src/Values/SvgAttribute.php`](https://github.com/ui-awesome/html-svg/blob/main/src/Values/SvgAttribute.php#L14) |

Represents standardized attribute names for the SVG `<svg>` element.

Provides literal string values for SVG attribute names.

See also: <https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute>.

## Cases

| Case | Value | Description |
| --- | --- | --- |
| <span id="case-CLIP_PATH_UNITS"></span>`CLIP_PATH_UNITS` | `'clipPathUnits'` | `clipPathUnits` - Defines the coordinate system for the contents of the `<clipPath>` element. |
| <span id="case-CX"></span>`CX` | `'cx'` | `cx` - Center x-coordinate of a circle or ellipse element. |
| <span id="case-CY"></span>`CY` | `'cy'` | `cy` - Center y-coordinate of a circle or ellipse element. |
| <span id="case-D"></span>`D` | `'d'` | `d` - Path data string for `<path>` elements. |
| <span id="case-DECODING"></span>`DECODING` | `'decoding'` | `decoding` - Provides an image decoding hint for `<image>` elements. |
| <span id="case-DOMINANT_BASELINE"></span>`DOMINANT_BASELINE` | `'dominant-baseline'` | `dominant-baseline` - Dominant baseline positioning attribute. |
| <span id="case-DX"></span>`DX` | `'dx'` | `dx` - Horizontal offset for text positioning. |
| <span id="case-DY"></span>`DY` | `'dy'` | `dy` - Vertical offset for text positioning. |
| <span id="case-FETCHPRIORITY"></span>`FETCHPRIORITY` | `'fetchpriority'` | `fetchpriority` - Hints the browser about the fetch priority for the resource. |
| <span id="case-FILL"></span>`FILL` | `'fill'` | `fill` - Fill attribute has two different meanings. |
| <span id="case-FILL_OPACITY"></span>`FILL_OPACITY` | `'fill-opacity'` | `fill-opacity` - Fill opacity attribute specifies the transparency of the fill paint. |
| <span id="case-FILL_RULE"></span>`FILL_RULE` | `'fill-rule'` | `fill-rule` - Fill rule attribute indicates which algorithm to use to determine the inside part of a shape. |
| <span id="case-FILTER_UNITS"></span>`FILTER_UNITS` | `'filterUnits'` | `filterUnits` - Defines the coordinate system for the contents of the `<filter>` element. |
| <span id="case-FONT_FAMILY"></span>`FONT_FAMILY` | `'font-family'` | `font-family` - Font family for text content. |
| <span id="case-FONT_SIZE"></span>`FONT_SIZE` | `'font-size'` | `font-size` - Font size for text content. |
| <span id="case-FONT_STYLE"></span>`FONT_STYLE` | `'font-style'` | `font-style` - Font style for text content. |
| <span id="case-FONT_WEIGHT"></span>`FONT_WEIGHT` | `'font-weight'` | `font-weight` - Font weight for text content. |
| <span id="case-FR"></span>`FR` | `'fr'` | `fr` - Radius of the start circle of the radial gradient. |
| <span id="case-FX"></span>`FX` | `'fx'` | `fx` - Center x-coordinate of the start circle of the radial gradient. |
| <span id="case-FY"></span>`FY` | `'fy'` | `fy` - Center y-coordinate of the start circle of the radial gradient. |
| <span id="case-GRADIENT_TRANSFORM"></span>`GRADIENT_TRANSFORM` | `'gradientTransform'` | `gradientTransform` - Defines a transformation applied to the gradient coordinate system. |
| <span id="case-GRADIENT_UNITS"></span>`GRADIENT_UNITS` | `'gradientUnits'` | `gradientUnits` - Defines the coordinate system for gradient attributes. |
| <span id="case-HEIGHT"></span>`HEIGHT` | `'height'` | `height` — Specifies the height of certain elements. |
| <span id="case-HREF"></span>`HREF` | `'href'` | `href` - Defines a reference to an external resource or SVG fragment. |
| <span id="case-LENGTH_ADJUST"></span>`LENGTH_ADJUST` | `'lengthAdjust'` | `lengthAdjust` - Controls how text is stretched or compressed to fit the width defined by textLength. |
| <span id="case-LETTER_SPACING"></span>`LETTER_SPACING` | `'letter-spacing'` | `letter-spacing` - Controls spacing between text characters. |
| <span id="case-MARKER_HEIGHT"></span>`MARKER_HEIGHT` | `'markerHeight'` | `markerHeight` - Represents the height of the viewport into which the marker is to be fitted. |
| <span id="case-MARKER_UNITS"></span>`MARKER_UNITS` | `'markerUnits'` | `markerUnits` - Defines the coordinate system for attributes `markerWidth`, `markerHeight`, and marker contents. |
| <span id="case-MARKER_WIDTH"></span>`MARKER_WIDTH` | `'markerWidth'` | `markerWidth` - Represents the width of the viewport into which the marker is to be fitted. |
| <span id="case-MASK_CONTENT_UNITS"></span>`MASK_CONTENT_UNITS` | `'maskContentUnits'` | `maskContentUnits` - Defines the coordinate system for the contents of the `<mask>` element. |
| <span id="case-MASK_TYPE"></span>`MASK_TYPE` | `'mask-type'` | `mask-type` - Defines the mask mode for the contents of the `<mask>` element. |
| <span id="case-MASK_UNITS"></span>`MASK_UNITS` | `'maskUnits'` | `maskUnits` - Defines the coordinate system for x, y, width, and height of the `<mask>` element. |
| <span id="case-OFFSET"></span>`OFFSET` | `'offset'` | `offset` - Defines the location of a gradient stop along a gradient vector. |
| <span id="case-OPACITY"></span>`OPACITY` | `'opacity'` | `opacity` - Opacity attribute specifies the transparency of an element. |
| <span id="case-ORIENT"></span>`ORIENT` | `'orient'` | `orient` - Indicates how the marker is rotated when placed at its position on the shape. |
| <span id="case-PATH_LENGTH"></span>`PATH_LENGTH` | `'pathLength'` | `pathLength` - Specifies the total length for the path. |
| <span id="case-PATTERN_CONTENT_UNITS"></span>`PATTERN_CONTENT_UNITS` | `'patternContentUnits'` | `patternContentUnits` - Defines the coordinate system for the contents of the `<pattern>` element. |
| <span id="case-PATTERN_TRANSFORM"></span>`PATTERN_TRANSFORM` | `'patternTransform'` | `patternTransform` - Defines a list of transformations applied to the pattern tile. |
| <span id="case-PATTERN_UNITS"></span>`PATTERN_UNITS` | `'patternUnits'` | `patternUnits` - Defines the coordinate system for the geometry of the `<pattern>` element. |
| <span id="case-POINTS"></span>`POINTS` | `'points'` | `points` - List of points for polyline and polygon elements. |
| <span id="case-PRESERVE_ASPECT_RATIO"></span>`PRESERVE_ASPECT_RATIO` | `'preserveAspectRatio'` | `preserveAspectRatio` - Indicates how content with a `viewBox` must fit into a viewport with a different aspect ratio. |
| <span id="case-PRIMITIVE_UNITS"></span>`PRIMITIVE_UNITS` | `'primitiveUnits'` | `primitiveUnits` - Defines the coordinate system for the contents of filter primitive elements. |
| <span id="case-R"></span>`R` | `'r'` | `r` - Radius of a circle element. |
| <span id="case-REF_X"></span>`REF_X` | `'refX'` | `refX` - Defines the x coordinate for the reference point of the marker. |
| <span id="case-REF_Y"></span>`REF_Y` | `'refY'` | `refY` - Defines the y coordinate for the reference point of the marker. |
| <span id="case-ROTATE"></span>`ROTATE` | `'rotate'` | `rotate` - Rotation values for individual glyphs in text. |
| <span id="case-RX"></span>`RX` | `'rx'` | `rx` - The x-axis radius of the ellipse. |
| <span id="case-RY"></span>`RY` | `'ry'` | `ry` - The y-axis radius of the ellipse. |
| <span id="case-SPREAD_METHOD"></span>`SPREAD_METHOD` | `'spreadMethod'` | `spreadMethod` - Indicates how a gradient behaves if it starts or ends inside the bounds of the shape. |
| <span id="case-STOP_COLOR"></span>`STOP_COLOR` | `'stop-color'` | `stop-color` - Defines the color of a gradient stop. |
| <span id="case-STOP_OPACITY"></span>`STOP_OPACITY` | `'stop-opacity'` | `stop-opacity` - Defines the opacity of a gradient stop. |
| <span id="case-STROKE"></span>`STROKE` | `'stroke'` | `stroke` - Stroke attribute is a presentation attribute defining the color (or any SVG paint servers like gradients or patterns) used to paint the outline of the shape. |
| <span id="case-STROKE_DASHARRAY"></span>`STROKE_DASHARRAY` | `'stroke-dasharray'` | `stroke-dasharray` - Stroke dasharray attribute is a presentation attribute defining the pattern of dashes and gaps used to stroke paths. |
| <span id="case-STROKE_LINECAP"></span>`STROKE_LINECAP` | `'stroke-linecap'` | `stroke-linecap` - Stroke linecap attribute is a presentation attribute defining the shape to be used at the end of open subpaths when they are stroked. |
| <span id="case-STROKE_LINEJOIN"></span>`STROKE_LINEJOIN` | `'stroke-linejoin'` | `stroke-linejoin` - Stroke linejoin attribute is a presentation attribute defining the shape to be used at the corners of paths or basic shapes when they are stroked. |
| <span id="case-STROKE_MITERLIMIT"></span>`STROKE_MITERLIMIT` | `'stroke-miterlimit'` | `stroke-miterlimit` - Stroke miterlimit attribute is a presentation attribute defining a limit on the ratio of the miter length to the stroke-width. |
| <span id="case-STROKE_OPACITY"></span>`STROKE_OPACITY` | `'stroke-opacity'` | `stroke-opacity` - Stroke opacity attribute specifies the transparency of the stroke paint. |
| <span id="case-STROKE_WIDTH"></span>`STROKE_WIDTH` | `'stroke-width'` | `stroke-width` - Stroke width attribute is a presentation attribute defining the width of the outline on the current object. |
| <span id="case-TEXT_ANCHOR"></span>`TEXT_ANCHOR` | `'text-anchor'` | `text-anchor` - Text anchor positioning attribute. |
| <span id="case-TEXT_DECORATION"></span>`TEXT_DECORATION` | `'text-decoration'` | `text-decoration` - Text decoration styling attribute. |
| <span id="case-TEXT_LENGTH"></span>`TEXT_LENGTH` | `'textLength'` | `textLength` - Target length for text rendering. |
| <span id="case-TITLE"></span>`TITLE` | `'title'` | `title` - Advisory title text for elements that expose the global title attribute. |
| <span id="case-TRANSFORM"></span>`TRANSFORM` | `'transform'` | `transform` - Transform attribute defines a list of transform definitions that are applied to an element and the element's children. |
| <span id="case-VIEW_BOX"></span>`VIEW_BOX` | `'viewBox'` | `viewBox` - Defines the position and dimension, in user space, of an SVG viewport. |
| <span id="case-WIDTH"></span>`WIDTH` | `'width'` | `width` — Specifies the width of certain elements. |
| <span id="case-WORD_SPACING"></span>`WORD_SPACING` | `'word-spacing'` | `word-spacing` - Controls spacing between words in text. |
| <span id="case-WRITING_MODE"></span>`WRITING_MODE` | `'writing-mode'` | `writing-mode` - Defines text direction and orientation. |
| <span id="case-X"></span>`X` | `'x'` | `x` - Displayed x coordinate of the SVG container. No effect on outermost `svg` elements. |
| <span id="case-X1"></span>`X1` | `'x1'` | `x1` - First x coordinate for drawing an SVG element. |
| <span id="case-X2"></span>`X2` | `'x2'` | `x2` - Second x coordinate for drawing an SVG element. |
| <span id="case-XMLNS"></span>`XMLNS` | `'xmlns'` | `xmlns` - XML namespace for the SVG element. |
| <span id="case-Y"></span>`Y` | `'y'` | `y` - Displayed y coordinate of the SVG container. No effect on outermost `svg` elements. |
| <span id="case-Y1"></span>`Y1` | `'y1'` | `y1` - First y coordinate for drawing an SVG element. |
| <span id="case-Y2"></span>`Y2` | `'y2'` | `y2` - Second y coordinate for drawing an SVG element. |