Slot
Slot<
Args> =string| ((…args) =>void)
Defined in: core.ts:44
Something that renders a small piece of content: either a plain string or a draw function (for icons, badges, custom markup, …).
A string is drawn as rich text (see drawSlot): Aberdeen’s rich
markup is applied, so *italic*, **bold**, `code` and
[links](/path) render as inline elements (text is safely escaped).
The optional Args type parameter lets a slot’s draw-function receive
arguments — e.g. a dialog body is a Slot<[close: () => void]>.
Type Parameters
Section titled “Type Parameters”Args extends unknown[] = []