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 |
text[].toString |
function |
<optional> |
Returns a string that represents current object. |
React.ReactElement