fabiommendes/elm-daisy-ui/1.0.0

Daisy.Elements

Generic Elements

Basic elements

counter : List (Attribute msg) -> Int -> Html msg

A simple rounded counter

counter [ class "foo" ] 10

It displays the number n within a circle

tags : List String -> Html msg

Renders a list of strings as tags

title : String -> Html msg

Main title of page

Layout

container : List (Html msg) -> Html msg

Main container element for page content.

list : (a -> Html msg) -> List (Attribute msg) -> List a -> Html msg

Render a list of a's as an <ul> element.

It uses the first argument to convert a's to Html's.

list text [] [ "foo", "bar", "baz" ]
List (Attribute msg)
-> ( String, List ( Url, String ) )
-> Html msg

Render a list of (url, name) pairs as an <ul> element.

If the list is empty, it produces a div [] [ text fallback ]

List (Attribute msg)
-> List ( String, List (Html msg) )
-> Html msg

Create a description list from a list of titles and their corresponding Html content.

Missing content

A string that can be used as a placeholder for unloaded data

A string that can be used as a placeholder for unloaded data

loremText : String

A string that can be used as a placeholder for unloaded data