Typography
Typography bao gồm các components Text, Title giúp hiển thị văn bản, tiêu đề.
Properties
<Text/>
properties
Prop | Type | Default | Description |
---|---|---|---|
className | string | Thêm css class cho element | |
style | React.CSSProperties | Thêm inline style cho element | |
size | string | 'normal' | Kích thước của text với font size - line hieght:
|
bold | boolean | false | |
fontSize | number | Font size cho element theo px | |
noSpace | boolean | Loại bỏ khoảng cách giữa các element, mặc định margin-bottom 8px |
<Title/>
properties
Prop | Type | Default | Description |
---|---|---|---|
className | string | Thêm css class cho element | |
style | React.CSSProperties | Thêm inline style cho element | |
size | string | 'normal' | Kích thước tiêu đề với font size - line hieght:
|
bold | boolean | false | In đậm nội dung |
textAlign | string | Căn lề cho tiêu đề:
| |
noSpace | boolean | Loại bỏ khoảng cách giữa các element, mặc định margin-bottom 8px |
Ví dụ
Code demo fallback when rendering server side!