View as Markdown

API reference: @salmonui/layout/card

CardPropsinterface

import type { CardProps } from '@salmonui/layout/card';
interface CardProps extends HTMLAttributes<HTMLElement> {
    readonly orientation?: 'vertical' | 'horizontal' | undefined;
    readonly render?: ((props: CardRenderProps) => ReactElement) | undefined;
}
CardProps members (2)
NameSignatureDescription
orientationoptionalreadonly orientation?: 'vertical' | 'horizontal' | undefined;

'vertical' (default) stacks the parts; 'horizontal' puts media and content side by side.

renderoptionalreadonly render?: ((props: CardRenderProps) => ReactElement) | undefined;

Renders another root element (<article>, a link) with the computed props. Default <div>.