mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
test: add TS types
This commit is contained in:
parent
302e82d6a2
commit
eed617433b
126 changed files with 3378 additions and 226 deletions
11
types/Button/Button.d.ts
vendored
11
types/Button/Button.d.ts
vendored
|
@ -1,6 +1,11 @@
|
|||
/// <reference types="svelte" />
|
||||
import { ButtonSkeletonProps } from "./ButtonSkeleton";
|
||||
|
||||
export interface ButtonProps {
|
||||
export interface ButtonProps
|
||||
extends ButtonSkeletonProps,
|
||||
svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["button"]>,
|
||||
svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["a"]>,
|
||||
svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
/**
|
||||
* Specify the kind of button
|
||||
* @default "primary"
|
||||
|
@ -87,10 +92,10 @@ export default class Button {
|
|||
$$prop_def: ButtonProps;
|
||||
$$slot_def: {
|
||||
default: {
|
||||
props?: {
|
||||
props: {
|
||||
role: "button";
|
||||
type?: string;
|
||||
tabindex: string;
|
||||
tabindex: any;
|
||||
disabled: boolean;
|
||||
href?: string;
|
||||
class: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue