Skip to content

Commit 1c6f23d

Browse files
MoMannnalexandratranMontoya
authored
Added size option to <Text> component. (#2172)
* Update index.md * add fontWeight and fixes --------- Co-authored-by: Alexandra Tran <[email protected]> Co-authored-by: Christian Montoya <[email protected]>
1 parent 98ed5ce commit 1c6f23d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

snaps/features/custom-ui/index.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,14 +1241,19 @@ Outputs text.
12411241
#### Props
12421242

12431243
- `color` - (Optional) The color of the text.
1244-
Possible values are `"default"`, "`alternative`", `"muted"`, `"error"`, `"success"`, and `"warning"`.
1244+
Possible values are `"default"`, `"alternative"`, `"muted"`, `"error"`, `"success"`, and `"warning"`.
12451245
The default is `"default"`.
12461246
- `alignment` - (Optional) The alignment of the text.
12471247
Possible values are `"start"`, `"center"`, and `"end"`.
12481248
The default is `"start"`.
12491249
- `children` - The content to display.
12501250
This can include strings, and [`Bold`](#bold), [`Italic`](#italic), [`Icon`](#icon), [`Link`](#link), and [`Skeleton`](#skeleton) components.
1251-
1251+
- `size` - (Optional) The size of the text.
1252+
Possible values are `"sm"` and `"md"`.
1253+
The default is `"md"`.
1254+
- `fontWeight` - (Optional) The font weight of the text.
1255+
Possible values are `"regular"`, `"medium"`, and `"bold"`.
1256+
The default is `"regular"`.
12521257

12531258
#### Example
12541259

0 commit comments

Comments
 (0)