check
Code copied to clipboard.
close
menu
menu_open
menu

LkCardProps

Describes props for the Card component.

Scope

Global
Local

Kind

Interface
Type

Source Code

content_copy

export interface LkCardProps extends React.HTMLAttributes<HTMLDivElement> {

 scaleFactor?: LkFontClass | "none";

 variant?: "fill" | "outline" | "transparent";

 material?: "flat" | "glass"; //TODO: Integrate these material controls with the new MaterialLayer component features

 materialProps?: LkMatProps;

 opticalCorrection?: "top" | "left" | "right" | "bottom" | "x" | "y" | "all" | "none";

 isClickable?: boolean;

 bgColor?: LkColorWithOnToken | "transparent"; //optional. does not need to have an "on" token because handled via bg global utility class, which assigns text color

 className?: string; //optional. explicitly listing here because we need to control how it mixes in with other styles controlled by classes

 children?: React.ReactNode;

}

Related Components

Components that use this type.

Related Types

Types with similar roles.

No items found.