Skip to content

Commit cf5502f

Browse files
authored
Update the @tag entry in the Component API documentation for the Text component (#2778)
1 parent b75d93d commit cf5502f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/docs/components/text/partials/code/component-api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ The `Text` component is used through these specialized variants: `Hds::Text::Dis
88
<C.Property @name="size" @type="string" @values={{array "500" "400" "300" "200" "100" }} @default="200">
99
The size of the `Display` text style.
1010
</C.Property>
11-
<C.Property @name="tag" @type="string" @default="span">
12-
HTML tag to be used to render the text element.
11+
<C.Property @name="tag" @type="HTMLElementTagName" @default="span">
12+
A valid HTML tag name to be used to render the text element.
1313
</C.Property>
1414
<C.Property @name="weight" @type="string" @values={{array "medium" "semibold" "bold" }}>
1515
The font weight of the text. If no `@weight` argument is provided, the component will inherit its weight from the parent container/context.<br><br>

0 commit comments

Comments
 (0)