NoRedInk/noredink-ui/21.3.0

NOTE: the latest version is 35.9.3

Nri.Ui.Block.V1

view : List Attribute -> List (Html msg)
Block.view [ Block.plaintext "Hello, world!" ]

Content

plaintext : String -> Attribute

Provide the main content of the block as a plain-text string. You can also use content for more complex cases, including a blank appearing within an emphasis.

Use content for more complex block views, for instance when a blank appears within an emphasis block. Prefer to use plaintext when possible for better readability.

Block.view
    [ Block.emphasize
    , Block.content [ Block.string "Hello, ", Block.blank, Block.string "!" ]
    ]
type Content
string : String -> Content

You will only need to use this helper if you're also using content to construct a more complex Block. Maybe you want plaintext instead?

You will only need to use this helper if you're also using content to construct a more complex Block. For a less complex blank Block, don't include content or plaintext in the list of attributes.

Content customization

Mark content as emphasized.

label : String -> Attribute

Visual customization