mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
feat(types): support sveltekit:prefetch
, sveltekit:noscroll
attributes in type definitions (#1234)
* chore(deps-dev): upgrade sveld to 0.14.0 * Run "yarn build:docs"
This commit is contained in:
parent
45c272642f
commit
ea38cd2568
167 changed files with 400 additions and 216 deletions
20
types/Button/Button.svelte.d.ts
vendored
20
types/Button/Button.svelte.d.ts
vendored
|
@ -1,6 +1,6 @@
|
|||
/// <reference types="svelte" />
|
||||
import { SvelteComponentTyped } from "svelte";
|
||||
import { ButtonSkeletonProps } from "./ButtonSkeleton.svelte";
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
import type { ButtonSkeletonProps } from "./ButtonSkeleton.svelte";
|
||||
|
||||
export interface ButtonProps
|
||||
extends ButtonSkeletonProps,
|
||||
|
@ -105,6 +105,22 @@ export interface ButtonProps
|
|||
* @default null
|
||||
*/
|
||||
ref?: null | HTMLAnchorElement | HTMLButtonElement;
|
||||
|
||||
/**
|
||||
* SvelteKit attribute to enable data prefetching
|
||||
* if a link is hovered over or touched on mobile.
|
||||
* @see https://kit.svelte.dev/docs/a-options#sveltekit-prefetch
|
||||
* @default false
|
||||
*/
|
||||
"sveltekit:prefetch"?: boolean;
|
||||
|
||||
/**
|
||||
* SvelteKit attribute to prevent scrolling
|
||||
* after the link is clicked.
|
||||
* @see https://kit.svelte.dev/docs/a-options#sveltekit-prefetch
|
||||
* @default false
|
||||
*/
|
||||
"sveltekit:noscroll"?: boolean;
|
||||
}
|
||||
|
||||
export default class Button extends SvelteComponentTyped<
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue