DocSpace-client/web/ASC.Web.Components/example/stories/text/content-header/README.md

28 lines
1.3 KiB
Markdown
Raw Normal View History

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 |
| ------------------ | -------- | :------: | --------------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `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 |