-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5802e73
commit cbe221f
Showing
7 changed files
with
54 additions
and
30 deletions.
There are no files selected for viewing
27 changes: 0 additions & 27 deletions
27
packages/website/src/examples/layout/EllipsisText/EllipsisText.demo.tsx
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
packages/website/src/examples/layout/EllipsisText/EllipsisTextDefaultLong.demo.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import {EllipsisText} from '@coveord/plasma-mantine'; | ||
|
||
const Demo = () => <EllipsisText maw={250}>This is a very long text that is truncated with an ellipsis.</EllipsisText>; | ||
export default Demo; |
4 changes: 4 additions & 0 deletions
4
packages/website/src/examples/layout/EllipsisText/EllipsisTextDefaultShort.demo.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import {EllipsisText} from '@coveord/plasma-mantine'; | ||
|
||
const Demo = () => <EllipsisText maw={250}>This short text is not truncated.</EllipsisText>; | ||
export default Demo; |
9 changes: 9 additions & 0 deletions
9
packages/website/src/examples/layout/EllipsisText/EllipsisTextLineClampLong.demo.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import {EllipsisText} from '@coveord/plasma-mantine'; | ||
|
||
const Demo = () => ( | ||
<EllipsisText maw={250} lineClamp={2}> | ||
This is a very long text that is truncated with an ellipsis since clamp limit is not enough to display the full | ||
text. | ||
</EllipsisText> | ||
); | ||
export default Demo; |
8 changes: 8 additions & 0 deletions
8
packages/website/src/examples/layout/EllipsisText/EllipsisTextLineClampShort.demo.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import {EllipsisText} from '@coveord/plasma-mantine'; | ||
|
||
const Demo = () => ( | ||
<EllipsisText maw={250} lineClamp={2}> | ||
This is a very long text that is not truncated since clamp limit is not reached. | ||
</EllipsisText> | ||
); | ||
export default Demo; |
11 changes: 11 additions & 0 deletions
11
packages/website/src/examples/layout/EllipsisText/EllipsisTextNoWrapContainer.demo.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import {EllipsisText} from '@coveord/plasma-mantine'; | ||
import {Chip} from '@mantine/core'; | ||
|
||
const Demo = () => ( | ||
<Chip> | ||
<EllipsisText maw={250}> | ||
This is a very long text within a special container is truncated with an ellipsis. | ||
</EllipsisText> | ||
</Chip> | ||
); | ||
export default Demo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters