nsbno / spor-elm / Spor.Text

A component for displaying text.


type Text

A component for displaying text.

Configuration

init : Text

Create an initial config for the Text component. Defaults to the Medium text style, and no text.

withTextStyle : Spor.TextStyle.TextStyle -> Text -> Text

Set the text style to use

withText : String -> Text -> Text

Set the text to be displayed

withAdditionalStyle : Css.Style -> Text -> Text

Set the additional style

Display

toHtml : Text -> Html.Styled.Html a

Render Text component to Html