2019-07-02 11:22:48 +00:00
|
|
|
# Text
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```js
|
|
|
|
import { Text } from 'asc-web-components';
|
|
|
|
```
|
|
|
|
|
|
|
|
### <Text.ContentHeader>
|
|
|
|
|
|
|
|
Wraps the given text in the specified size of the content header.
|
|
|
|
|
|
|
|
#### Usage
|
|
|
|
|
|
|
|
```js
|
|
|
|
<Text.ContentHeader title='Some title' isInline>
|
|
|
|
Some text
|
|
|
|
</Text.ContentHeader>
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Properties
|
|
|
|
|
|
|
|
| Props | Type | Required | Values | Default | Description |
|
|
|
|
| ------------------ | -------- | :------: | --------------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
2019-08-07 08:18:42 +00:00
|
|
|
| `color` | `string` | - | - | '#333333' | Specifies the contentHeader color |
|
2019-07-02 11:22:48 +00:00
|
|
|
| `isDisabled` | `bool` | - | - | false | Marks text as disabled |
|
|
|
|
| `title` | `bool` | - | - | - | Title |
|
|
|
|
| `truncate` | `bool` | - | - | false | Disables word wrapping |
|
|
|
|
| `isInline` | `bool` | - | - | false | Sets the 'display: inline-block' property |
|