Sha256: fda4fad33d19c1b8c388c89e4d7506c3711e9730384731f08675e1a026dff16c

Contents?: true

Size: 1.38 KB

Versions: 2

Compression:

Stored size: 1.38 KB

Contents

import React from 'react';
import { GlobalProps } from '../utilities/globalProps';
import type { ProductColors, CategoryColors, BackgroundColors } from '../types/colors';
declare type CardPropTypes = {
    aria?: {
        [key: string]: string;
    };
    background?: BackgroundColors | ProductColors | "none";
    borderNone?: boolean;
    borderRadius?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "rounded";
    children: React.ReactChild[] | React.ReactChild | number;
    className?: string;
    data?: {
        [key: string]: string;
    };
    highlight?: {
        position?: "side" | "top";
        color?: string;
    };
    length?: number;
    padding?: string;
    selected?: boolean;
    tag?: "div" | "section" | "footer" | "header" | "article" | "aside" | "main" | "nav";
} & GlobalProps;
declare type CardHeaderProps = {
    headerColor?: BackgroundColors | ProductColors | CategoryColors | "none";
    headerColorStriped?: boolean;
    children: React.ReactChild[] | React.ReactChild;
    className?: string;
    padding?: string;
} & GlobalProps;
declare type CardBodyProps = {
    children: React.ReactChild[] | React.ReactChild | string;
    className?: string;
    padding?: string;
} & GlobalProps;
declare const Card: {
    (props: CardPropTypes): JSX.Element;
    Header: (props: CardHeaderProps) => JSX.Element;
    Body: (props: CardBodyProps) => JSX.Element;
};
export default Card;

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1609 app/pb_kits/playbook/pb_card/_card.d.ts
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1608 app/pb_kits/playbook/pb_card/_card.d.ts