Logo FS-Skia-UI

IconButton Module

Builders for the `IconButton` control — a compact, glyph-only clickable command.

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 an `IconButton` from its attributes; pair with `IconButton.icon` and `onClick`. The typed `Props` front door (`FS.Skia.UI.Controls.Typed`) is the recommended authoring path.

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

icon arg1

Full Usage: icon arg1

Parameters:
    arg0 : string

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

Choose the glyph an `IconButton` shows (`Attr` carrying the icon-set name; the visual stand-in for a text label).

arg0 : string
Returns: Attr<'msg>

onClick arg1

Full Usage: onClick arg1

Parameters:
    arg0 : 'msg

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

Emit a fixed `'msg` when the `IconButton` is clicked (`Attr.onClick`).

arg0 : 'msg
Returns: Attr<'msg>

Type something to start searching.