Three small signals: count/1, the round bubble with a number (4 pull requests waiting), dot/1, the
status dot (connected, reviewing) and chip/1, the pill with a small avatar and a name. A dot can pulse,
and stops under prefers-reduced-motion; it is drawn in the brighter dot shade of its tone.
Summary
Functions
A pill with a small avatar and a name, for a person assigned to something.
Functions
A pill with a small avatar and a name, for a person assigned to something.
Attributes
initials(:string) - the letters in the small avatar; ignored when theavatarslot is given. Defaults tonil.tone(:atom) - the tint of the small avatar. Defaults to:indigo. Must be one of:indigo,:emerald,:risk,:warn,:ok,:info, or:neutral.class(:any) - Defaults tonil.- Global attributes are accepted.
Slots
avatar- replaces the initials, drawn by the caller in a 22 px circle.inner_block(required) - the name.
Attributes
value(:integer) (required)max(:integer) - above this the bubble reads99+. Defaults to99.tone(:atom) - Defaults to:neutral. Must be one of:neutral, or:risk.class(:any) - Defaults tonil.- Global attributes are accepted.
Attributes
tone(:atom) - Defaults to:ok. Must be one of:ok,:warn,:risk,:info,:neutral,:indigo, or:emerald.pulse(:boolean) - Defaults tofalse.label(:string) - what the dot says, for assistive technology; without it the dot is decoration. Defaults tonil.class(:any) - Defaults tonil.- Global attributes are accepted.