/** * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import { HTMLAttributes, ReactNode, ForwardRefExoticComponent, RefAttributes, FC } from 'react'; export type CardVariant = 'default' | 'outlined' | 'elevated'; export interface CardProps extends HTMLAttributes { /** * Card content */ children?: ReactNode; /** * Whether the card should be clickable (shows hover effects) */ clickable?: boolean; /** * The visual variant of the card */ variant?: CardVariant; } export interface CardHeaderProps extends HTMLAttributes { /** * Header content */ children?: ReactNode; } export interface CardTitleProps extends HTMLAttributes { /** * Title content */ children?: ReactNode; /** * The heading level to use */ level?: 1 | 2 | 3 | 4 | 5 | 6; } export interface CardDescriptionProps extends HTMLAttributes { /** * Description content */ children?: ReactNode; } export interface CardActionProps extends HTMLAttributes { /** * Action content */ children?: ReactNode; } export interface CardContentProps extends HTMLAttributes { /** * Content */ children?: ReactNode; } export interface CardFooterProps extends HTMLAttributes { /** * Footer content */ children?: ReactNode; } /** * Card component that provides a flexible container for content. * * @example * ```tsx * * * Card Title * Card Description * * * * * *

Card content goes here

*
* * * * *
* ``` */ declare const Card: ForwardRefExoticComponent>; /** * Card header component that contains the title, description, and optional actions. */ declare const CardHeader: ForwardRefExoticComponent>; /** * Card title component. */ declare const CardTitle: FC; /** * Card description component. */ declare const CardDescription: FC; /** * Card action component for action elements in the header. */ declare const CardAction: ForwardRefExoticComponent>; /** * Card content component that contains the main content of the card. */ declare const CardContent: ForwardRefExoticComponent>; /** * Card footer component that contains footer actions or additional information. */ declare const CardFooter: ForwardRefExoticComponent>; export interface CardComponent extends ForwardRefExoticComponent> { Action: typeof CardAction; Content: typeof CardContent; Description: typeof CardDescription; Footer: typeof CardFooter; Header: typeof CardHeader; Title: typeof CardTitle; } declare const _default: CardComponent; export default _default; export { Card, CardHeader, CardTitle, CardDescription, CardAction, CardContent, CardFooter }; //# sourceMappingURL=Card.d.ts.map