Skip to content

Commit

Permalink
feat: Added style for text component (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-martinez authored Oct 7, 2021
1 parent d8014e2 commit 151a472
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/components/text.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"value": {
"description": "the value displayed in the element",
"type": "string"
},
"style": {
"$ref": "defs/textStyle.schema.json"
}
},
"required": [
Expand Down
21 changes: 21 additions & 0 deletions api/defs/textStyle.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "https://raw.githubusercontent.com/lenra-io/ex_component_schema/beta/priv/static/draft-lenra.json",
"$id": "textStyle.schema.json",
"title": "TextStyle",
"description": "The style to use, the component will be changed according to the theme.",
"type": "string",
"enum": [
"headline1",
"headline2",
"headline3",
"headline4",
"headlineBody",
"bodyText",
"blueBodyText",
"subtext",
"disabledBodyText",
"underDescriptionText",
"errorText"
],
"default": "bodyText"
}

0 comments on commit 151a472

Please sign in to comment.