mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(link): $$restProps
should extend p
, a
HTML attributes (#1233)
* fix(link): restProps should extend `p` or `a` tag attributes * Run "yarn build:docs" * test(link): assert anchor link rest attributes
This commit is contained in:
parent
e8da9d7e9b
commit
45c272642f
4 changed files with 8 additions and 25 deletions
3
types/Link/Link.svelte.d.ts
vendored
3
types/Link/Link.svelte.d.ts
vendored
|
@ -2,7 +2,8 @@
|
|||
import { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface LinkProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["p"]> {
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["p"]>,
|
||||
svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["a"]> {
|
||||
/**
|
||||
* Specify the size of the link
|
||||
* @default undefined
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue