fabiommendes / elm-daisy-ui / Daisy.Role

Type safe semantic roles

Some Daisy elements accept those roles to change appearance.


type Role
    = Primary
    | Secondary
    | Accent
    | Neutral
    | Info
    | Success
    | Warning
    | Error

Represent a presentation style based on intent

Utilities

class : String -> Role -> Html.Attribute msg

Create a role class from prefix

name : Role -> String

Convert role to string

withRole : String -> Role -> Html.Attribute msg

Create a role class from prefix