orus-io/elm-orus-ui/1.0.0

NOTE: the latest version is 1.0.1

Formerly cdevienne/elm-orus-ui. Search finds this package by either name.

OUI.Badge

A badge creation API

Types

type Badge
= Small
| Label String
| Number Int

A badge is a small red bullet with optional label that typically floats on the top right a an element, usually an icon

Constructor

A small badge has no label and is smaller than a badge with a label

label : String -> Badge

Creates a badge with a text label

number : Int -> Badge

Creates a badge with a numeric label