KeyboardHelp
This source is documented by the existing examples linked below.
src/components/islands/KeyboardHelp.tsxUsage contract
- Reuse this composition from its source and demo. Keep its existing semantic structure and locale/data contracts.
Examples
- keyboard-help
<button hidden type="button" data-keyboard-help aria-haspopup="dialog" aria-expanded="false" aria-keyshortcuts="?" class="inline-flex min-h-8 items-center gap-2 rounded-control border border-line px-3 text-sm hover:bg-sunken focus-visible:outline-2 focus-visible:outline-ring"><Keycap>?</Keycap>{t(locale,'island.label')}</button> <KeyboardHelp client:load title={t(locale,'island.label')} close={t(locale,'case.close')} enabled={t(locale,'keys.enabled')} hint={t(locale,'keys.hint')} native={t(locale,'keys.native')} sections={{reading:t(locale,'keys.reading'),page:t(locale,'keys.page'),focus:t(locale,'keys.focus')}} shortcuts={[{key:'?',label:t(locale,'keys.help')},{key:'L',label:t(locale,'island.lang')},{key:'T',label:t(locale,'island.theme')}]}/>
API
Extracted from the source with the TypeScript parser. Inherited and imported types remain references; implementation is authoritative.
type Props={title:string;close:string;enabled:string;hint:string;native:string;sections:{reading:string;page:string;focus:string;scope?:string};shortcuts:{key:string;label:string}[]};KeyboardHelp({title,close,enabled,hint,native,sections,shortcuts}:Props)Source usage
Website reference
This is static source evidence. A reachable module may contain conditional or unused branches. External consumers and staged static pages are outside this scan. No status authorizes deletion.
Website
- src/pages/en/work/[id].astro
- src/components/case/CasePage.astro
- src/components/ShortcutIsland.astro
- src/components/islands/KeyboardHelp.tsx
Documentation
- src/pages/design-system/[category].astro
- src/components/ds/DesignSystemPage.astro
- src/components/ds/ControlDemos.astro
- src/components/islands/KeyboardHelp.tsx
Preview
- src/pages/vorschlag/cases/[id].astro
- src/components/case/CasePage.astro
- src/components/ShortcutIsland.astro
- src/components/islands/KeyboardHelp.tsx
Consumers in source
Direct static, dynamic and type imports. Imports do not prove that a branch renders or that a proposal is published.
Dependencies
@/components/LeetReady·src/components/LeetReady.tsxreact@/components/ui/dialog·src/components/ui/dialog.tsx@/components/ui/switch·src/components/ui/switch.tsx@/scripts/case-navigation·src/scripts/case-navigation.ts