pencere

Components / Controls

u:kbd

The keys of a shortcut as the platform writes them: a cap for each, or, with props.quiet, the label alone in quiet words.

The keys of a shortcut as the platform writes them: a cap for each, or, with props.quiet, the label alone in quiet words. The keys of a shortcut as the platform writes them: a cap for each, or, with props.quiet, the label alone in quiet words.

The code

return pencere.div():row():items_center():gap(16)
	:child(u:kbd("cmd+shift+p"))
	:child(u:kbd("cmd+k"))
	:child(u:kbd("ctrl+enter", { quiet = true }))

What it does

The keys of a shortcut ("cmd+shift+k") as the platform writes them: a cap for each, or, with props.quiet, the label alone in quiet words.

kit/sandbox/library/ui/basic.luau, line 288