mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
26 lines
566 B
TypeScript
26 lines
566 B
TypeScript
import type { SvelteComponentTyped } from "svelte";
|
|
import type { SvelteHTMLElements } from "svelte/elements";
|
|
|
|
type RestProps = SvelteHTMLElements["a"];
|
|
|
|
export interface SkipToContentProps extends RestProps {
|
|
/**
|
|
* Specify the `href` attribute
|
|
* @default "#main-content"
|
|
*/
|
|
href?: string;
|
|
|
|
/**
|
|
* Specify the tabindex
|
|
* @default "0"
|
|
*/
|
|
tabindex?: string;
|
|
|
|
[key: `data-${string}`]: any;
|
|
}
|
|
|
|
export default class SkipToContent extends SvelteComponentTyped<
|
|
SkipToContentProps,
|
|
{ click: WindowEventMap["click"] },
|
|
{ default: {} }
|
|
> {}
|