Kbd.combo# function · packages/mixins-ui/src/kbd.ts:62
function combo < Message = never >(
options: KbdCombo < Message >,
h: HtmlBuilder < Message >,
) : Html Kbd.combo({ keys: ['⌘', 'K'] }, h): the keys in a row, inside one kbd. Throws on no keys.
Kbd.KbdCombo# interface · packages/mixins-ui/src/kbd.ts:48
interface KbdCombo < Message = never > {
readonly keys: ReadonlyArray < string | Html >
readonly joiner?: string | undefined
readonly style?: NamedStyle < typeof KbdSlots> | undefined
readonly mixins?: MixinList < Message > | undefined
} A key combination: the keys pressed together, in order.
Kbd.KbdSlots# const · packages/mixins-ui/src/kbd.ts:11
const KbdSlots: Slots . Contract <{
readonly key: Slot . UnnamedSlot <
Capability . Capability <
'Container' ,
readonly [
Capability . Capability <
'Interactive' ,
readonly [Capability . Capability < 'Base' , readonly []> ]
>,
]
>,
readonly Slot . EventName [],
readonly Slot . AttributeName [],
readonly Slot . RequirementName [],
boolean
>
readonly combo: Slot . UnnamedSlot <
Capability . Capability <
'Container' ,
readonly [
Capability . Capability <
'Interactive' ,
readonly [Capability . Capability < 'Base' , readonly []> ]
>,
]
>,
readonly Slot . EventName [],
readonly Slot . AttributeName [],
readonly Slot . RequirementName [],
boolean
>
readonly joiner: Slot . UnnamedSlot <
Capability . Capability <
'Container' ,
readonly [
Capability . Capability <
'Interactive' ,
readonly [Capability . Capability < 'Base' , readonly []> ]
>,
]
>,
readonly Slot . EventName [],
readonly Slot . AttributeName [],
readonly Slot . RequirementName [],
boolean
>
}> Show all 47 lines A keyboard key publishes its slots; it owns no state, messages, or
bundles. It names the key to press, never an action: pair it with words.
A combination is a kbd (combo) holding a kbd per key, as HTML
writes one, with an optional joiner between the keys.
Kbd.KbdView# interface · packages/mixins-ui/src/kbd.ts:21
interface KbdView < Message = never > {
readonly key: string | Html
readonly style?: NamedStyle < typeof KbdSlots> | undefined
readonly mixins?: MixinList < Message > | undefined
} A key in one call: the key it names, a style for its slot, and mixins
beside the style. No upstream component stands behind it.
Kbd.view# function · packages/mixins-ui/src/kbd.ts:44
function view < Message = never >(
options: KbdView < Message >,
h: HtmlBuilder < Message >,
) : Html