@hakit/components
Version:
A series of components to work with @hakit/core
19 lines • 1.33 kB
TypeScript
import { HassEntityWithService } from '@hakit/core';
import { ClimateControlsProps } from '../..';
import { ButtonCardProps } from '../ButtonCard';
type OmitProperties = "onClick" | "children" | "active" | "as" | "disableActiveState" | "features";
type Extendable = Omit<ClimateControlsProps, "onClick"> & Omit<ButtonCardProps<ClimateControlsProps["entity"]>, OmitProperties>;
export interface ClimateCardProps extends Extendable {
/** the onClick handler is called when the card is pressed */
onClick?: (entity: HassEntityWithService<"climate">) => void;
/** show the labels in the button bar for the hvac modes @default false */
showHvacModeLabels?: boolean;
/** show the temperature controls within the main card, does not change the popup @default false */
showTemperatureControls?: boolean;
}
/** The ClimateCard is a card to easily interact with climate entities, whilst it's not documented below, the types are correct and you can also pass through anything related to ModalClimateControlsProps
* The ClimateCard shares the same functionality/props as the ButtonCard so you can display in different layouts and also utilize the same props
*/
export declare function ClimateCard(props: ClimateCardProps): import("@emotion/react/jsx-runtime").JSX.Element;
export {};
//# sourceMappingURL=index.d.ts.map