NoRedInk / noredink-ui / Nri.Ui.Panel.V1

Create panels (AKA wells.)

Changelog

Patch changes

view : List (Attribute msg) -> Html.Styled.Html msg

create a panel, given the options you specify


type Attribute msg

Content

header : String -> Attribute msg

The main text for the panel's header

paragraph : String -> Attribute msg

Provide a plain-text string that will be put into a paragraph tag, with the default margin removed.

plaintext : String -> Attribute msg

Use a plain-text string for the panel content.

markdown : String -> Attribute msg

Use a markdown string for the panel content.

html : List (Html.Styled.Html msg) -> Attribute msg

Render panel content.

containerCss : List Css.Style -> Attribute msg

headerCss : List Css.Style -> Attribute msg

css : List Css.Style -> Attribute msg

Theme

primary : Attribute msg

use the primary color theme (this is the default)

secondary : Attribute msg

use the secondary color theme