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
337 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', {
2024-04-05 23:52:02 +01:00
id: 'skip-navigation',
2024-04-05 23:26:22 +01:00
class: 'sr-only',
href: '#skip-content',
accesskey: accessKeys.SkipContent,
}, t(`a11y.skip_navigation`))
},
})