DocSpace-buildtools/web/ASC.Web.Storybook/stories/text/headline
2019-07-24 15:32:17 +03:00
..
index.stories.js Web: Components: Text: Fixed truncate property, no more need 1000px dummy. 2019-07-24 15:32:17 +03:00
README.md Moved Storybook to separated ASC.Web.Storybook folder (issue: 'git clean -xdf' removes storybook files every time) 2019-07-09 17:54:30 +03:00

Text

Usage

import { Text } from 'asc-web-components';

<Text.Headline>

Wraps the given text in the given HTML header size.

Usage

    <Text.Headline tag='h1' title='Some title'>
        Some text
    </Text.Headline>

Properties

Props Type Required Values Default Description
isDisabled bool - - false Marks text as disabled
tag oneOf - h1,h2,h3 h1 Sets the text type with its own font size
title bool - - - Title
truncate bool - - false Disables word wrapping
isInline bool - - false Sets the 'display: inline-block' property