NoRedInk/noredink-ui/22.1.0

NOTE: the latest version is 35.9.3

Nri.Ui.Mark.V2

type alias Mark =
{ name : Maybe String
, startStyles : List Style
, styles : List Style
, endStyles : List Style
}
(content -> List Style -> Html msg)
-> List ( content, Maybe Mark )
-> List (Html msg)

When elements are marked, wrap them in a single mark html node.

(content -> List Style -> Html msg)
-> List ( content, Maybe Mark )
-> List (Html msg)

When elements are marked, wrap them in a single mark html node.

Show the label for the mark, if present, in-line with the emphasized content.

{ renderSegment : c -> List Style -> Html msg
, backgroundColor : Color
, maybeMarker : Maybe Mark
, labelPosition : Maybe LabelPosition
, labelId : Maybe String
, labelContentId : Maybe String
}
-> List c
-> List (Html msg)

When elements are marked, wrap them in a single mark html node.

Show the label for the mark, if present, in a balloon centered above the emphasized content.