NoRedInk/noredink-ui/6.29.0

NOTE: the latest version is 35.9.3

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: Software Heritage not asked yet (this run's --swh-calls were used up); no fork with tag 6.29.0 found (15 same-name repos checked); no cached copy. Use another version.

Details

Nri.Ui.ClickableText.V1

About:

ClickableText looks different from Nri.Ui.Button in that it displays without margin or padding. ClickableText has the suave, traditional look of a "link"!

For accessibility purposes, buttons that perform an action on the current page should be HTML <button> elements and are created here with *Button functions. Buttons that take the user to a new page should be HTML <a> elements and are created here with *Link functions.

<button> creators

type alias ButtonConfig msg =
{ label : String
, size : Size
, icon : Maybe IconType
, onClick : msg
}

Config for the button

button : ButtonConfig msg -> Html msg

Creates a <button> element

<a> creators

type alias LinkConfig =
{ label : String
, size : Size
, icon : Maybe IconType
, url : String
}

Config for the link

Config

type Size
= Small
| Medium
| Large

Sizes for the button