1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-15 21:39:58 +00:00
elk/components/skip/SkipContent.ts

15 lines
326 B
TypeScript
Raw Normal View History

2024-04-05 23:26:22 +01:00
// @unocss-include
import { accessKeys } from '~/constants/access-keys'
export default defineComponent({
setup() {
const { t } = useI18n()
return () => h('a', {
id: 'skip',
class: 'sr-only',
href: '#skip-content',
accesskey: accessKeys.SkipContent,
}, t(`a11y.skip_navigation`))
},
})