@typography-org/react
v1.0.0
Published
A react component library that calculates fonts according to browser behavior and omits expanding and collapsing
Downloads
12
Maintainers
Readme
@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