carbon-components-svelte/types/Tile/ClickableTile.d.ts
Eric Liu f3cddbad9f
Align v10.33 (#619)
* chore(deps-dev): upgrade carbon-components to v10.33.0

* fix(clickable-tile): support disabled state for ClickableTile

* fix(aspect-ratio): add missing 3x2 ratio

* docs: update number of supported chart types

* feat(link): support link with icon

* refactor(outbound-link): use icon prop

* fix(search): wrap search icon with div
2021-04-30 17:08:09 -07:00

39 lines
786 B
TypeScript

/// <reference types="svelte" />
import { SvelteComponentTyped } from "svelte";
export interface ClickableTileProps {
/**
* Set to `true` to click the tile
* @default false
*/
clicked?: boolean;
/**
* Set to `true` to enable the light variant
* @default false
*/
light?: boolean;
/**
* Set to `true` to disable the tile
* @default false
*/
disabled?: boolean;
/**
* Set the `href`
*/
href?: string;
}
export default class ClickableTile extends SvelteComponentTyped<
ClickableTileProps,
{
click: WindowEventMap["click"];
keydown: WindowEventMap["keydown"];
mouseover: WindowEventMap["mouseover"];
mouseenter: WindowEventMap["mouseenter"];
mouseleave: WindowEventMap["mouseleave"];
},
{ default: {} }
> {}