Logo FS-Skia-UI

Badge Module

Builders for the `Badge` control — a small count/status pill overlaid on or beside content.

Functions and values

Function or value Description

create arg1

Full Usage: create arg1

Parameters:
    arg0 : Attr<'msg> list

Returns: Control<'msg>
Type parameters: 'msg

Build a `Badge` pill from its attributes; pair with `Badge.text` for its label. The typed `Props` front door (`FS.Skia.UI.Controls.Typed`) is the recommended authoring path.

arg0 : Attr<'msg> list
Returns: Control<'msg>

text arg1

Full Usage: text arg1

Parameters:
    arg0 : string

Returns: Attr<'msg>
Type parameters: 'msg

Set the label shown inside a `Badge` (`Attr` carrying the short count/status string).

arg0 : string
Returns: Attr<'msg>

Type something to start searching.