A title component serving as a semantic header element
https://www.patternfly.org/v4/components/title
Constructs a Title element without any attributes
The default Size is Medium 16, use the various sizing
configuration with functions to alter it.
Defined a vertical rhythm of text sizing
We may want to have some approach to doing a scaled definition of
these sizes from a relative measure, a la rem units in CSS.
Borrowed from the elm-ui documentation:
scaled : Int -> Float
scaled =
Element.modular 16 1.25So we'd allow you to pass in a defined "hierarchy" that would map the
TextSize values to the respective Int value.
Configure text size to Md, or medium
Configure text size to Lg, or large
Configure text size to XL
Configure text size to 2XL
Configure text size to 3XL
Configure text size to 4XL
Element.Attribute msgAdds a list of Element.Attributes to the element
Opaque
Titleelement that can producemsgmessages