Class

ColouredTitle

ColouredTitle(props) → {React.ReactElement}

Constructor

# new ColouredTitle(props) → {React.ReactElement}

Overview

Displays a list of primary-secondary elements. Applies custom colours and optional brackets.
Parameters:
Name Type Attributes Description
props Object
text Array.<Object>

The list of objects that represent to be rendered nodes.

text[].primary number | string <optional>

An element that will be coloured with primary colour.

text[].secondary number | string <optional>

An element that will be coloured with secondary colour.

text[].brackets boolean <optional>

If true brackets will be added before and after a node.

text[].toString function <optional>

Returns a string that represents current object.

View Source Utils/DataDisplay/ColouredTitle.js, line 41

React.ReactElement