UNPKG

@hakit/components

Version:
30 lines 1.57 kB
import { EntityName } from '@hakit/core'; import { CardBaseProps } from '../..'; import { IconProps } from '@iconify/react'; type OmitProperties = "as" | "entity"; export interface TriggerCardProps<E extends EntityName> extends Omit<CardBaseProps<"button", E>, OmitProperties> { /** The name of your entity */ entity: E; /** an optional description to add to the card */ description?: string; /** optional override to replace the icon that appears in the card */ icon?: string; /** the props for the icon, which includes styles for the icon */ iconProps?: Omit<IconProps, "icon">; /** the props for the icon, which includes styles for the icon */ sliderIconProps?: Omit<IconProps, "icon">; /** optional override for the slider icon */ sliderIcon?: string; /** override for the slider text when the state is active */ sliderTextActive?: string; /** override for the slider text when the state is inactive */ sliderTextInactive?: string; /** how much time in milliseconds must pass before the active state reverts to it's default state @default 5000 */ activeStateDuration?: number; /** display the arrow icon in the slider @default false */ hideArrow?: boolean; } /** The TriggerCard is a simple to use component to make it easy to trigger and a scene, automation, script or any other entity to trigger. */ export declare function TriggerCard<E extends EntityName>(props: TriggerCardProps<E>): import("@emotion/react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=index.d.ts.map