genie-component-library
Version:
Genie Component Library
55 lines (54 loc) • 1.74 kB
TypeScript
/**
* @slot - Content is placed between the heading and text
* @slot start - Content is placed above heading
* @slot end - Content is placed after the text
*
* @part card - Main card wrapper
* @part card-heading - Card Heading
* @part card-text - Card Text
* @part card-link - Card Link
*/
export declare class GenieCard {
heading: string;
text: string;
/**
* Don't alter style on hover
*/
noHover: boolean;
/**
* If `true`, a button tag will be rendered and the card will be tappable.
*/
button: boolean;
/**
* The type of the button. Only used when an `onclick` or `button` property is present.
*/
type: "submit" | "reset" | "button";
/**
* If `true`, the user cannot interact with the card.
*/
disabled: boolean;
/**
* This attribute instructs browsers to download a URL instead of navigating to
* it, so the user will be prompted to save it as a local file. If the attribute
* has a value, it is used as the pre-filled file name in the Save prompt
* (the user can still change the file name if they want).
*/
download: string | undefined;
/**
* Contains a URL or a URL fragment that the hyperlink points to.
* If this property is set, an anchor tag will be rendered.
*/
href: string | undefined;
/**
* Specifies the relationship of the target object to the link object.
* The value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types).
*/
rel: string | undefined;
/**
* Specifies where to display the linked URL.
* Only applies when an `href` is provided.
* Special keywords: `"_blank"`, `"_self"`, `"_parent"`, `"_top"`.
*/
target: string | undefined;
render(): any;
}