Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/docs/src/routes/core/text/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ Specify maximum amount of lines with `lineClamp` prop. This option uses [-webkit

<Demo demo={TextDemos.clamp} />

- `lineClamp={0}` will show all the associated text.

## Inherit Styles

Text always applies font-size, font-family and line-height styles, but in some cases this is not a desired behavior. To force Text to inherit parent styles set `inherit` prop. For example, highlight part of [Title]({base}/core/title):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
codeTemplate,
configurator: [
{ name: 'size', type: 'size', initialValue: 'md', defaultValue: 'md' },
{ name: 'lineClamp', label: 'Line clamp', type: 'number', initialValue: 4, min: 1, max: 5 }
{ name: 'lineClamp', label: 'Line clamp', type: 'number', initialValue: 4, min: 0, max: 5 }
]
};
</script>
Expand Down
Loading