mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 10:51:06 +00:00
feat(ui-shell): add Content, SkipToContent components
This commit is contained in:
parent
6a5f461017
commit
40dc2bf61e
5 changed files with 68 additions and 40 deletions
8
src/components/UIShell/SkipToContent.svelte
Normal file
8
src/components/UIShell/SkipToContent.svelte
Normal file
|
@ -0,0 +1,8 @@
|
|||
<script>
|
||||
export let href = "#main-content";
|
||||
export let tabindex = "0";
|
||||
</script>
|
||||
|
||||
<a {...$$props} class:bx--skip-to-content={true} {href} {tabindex} on:click>
|
||||
<slot>Skip to main content</slot>
|
||||
</a>
|
Loading…
Add table
Add a link
Reference in a new issue