@typography-org/react
v1.0.0-beta.1 typography paragraph ellipsis browser ellipsis text calculate react components
@typography-org/react
install
npm i @typography-org/react -S
fast use
import React from 'react';
import { Paragraph } from '@typography-org/react';
export default () => {
return (
<div style={{ width: 300, fontSize: 14, border: '1px solid orange', boxSizing: 'initial'}}>
<Paragraph
ellipsis={{
expandable: true,
packupable: true,
rows: 2,
}}
>
I may be the first row of data displayed in this text box hey, I may be the second row of data displayed in this text box, I may be the third row of data displayed in this text box
</Paragraph>
</div>
)
}
Documentation
See https://drdevelop.github.io/typography/react/index.html
Community
Vue Components
Native
npm i @typography-org/[email protected]
Metadata
- MIT
- Whatever
- cxd
- released 5/4/2022