1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-15 13:30:05 +00:00
elk/components/skip/SkipContent.ts
2024-04-06 00:52:02 +02:00

15 lines
337 B
TypeScript

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