fabiommendes/elm-daisy-ui/1.0.0

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 -> Attribute msg

Create a role class from prefix

name : Role -> String

Convert role to string

withRole : String -> Role -> Attribute msg

Create a role class from prefix