@hypothesis/frontend-shared
Version:
Shared components, styles and utilities for Hypothesis projects
22 lines (21 loc) • 873 B
TypeScript
/**
* @typedef {import('../../types').PresentationalProps} CommonProps
* @typedef {import('preact').JSX.HTMLAttributes<HTMLElement>} HTMLAttributes
*
* @typedef CardContentProps
* @prop {'sm'|'md'|'lg'} [size='md'] - Relative spacing sizing
*/
/**
* Apply consistent spacing and padding for content inside a Card
*
* @param {CommonProps & CardContentProps & Omit<HTMLAttributes, 'size'>} props
*/
export default function CardContent({ children, classes, elementRef, size, ...htmlAttributes }: CommonProps & CardContentProps & Omit<HTMLAttributes, 'size'>): import("preact").JSX.Element;
export type CommonProps = import('../../types').PresentationalProps;
export type HTMLAttributes = import('preact').JSX.HTMLAttributes<HTMLElement>;
export type CardContentProps = {
/**
* - Relative spacing sizing
*/
size?: "sm" | "md" | "lg" | undefined;
};