# CardProps (@salmonui/layout/card)

> The CardProps interface of @salmonui/layout/card.

Canonical: https://salmonui.dev/docs/reference/layout/card/CardProps

```ts
import type { CardProps } from '@salmonui/layout/card';
```

Entry index: https://salmonui.dev/docs/reference/layout/card (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/layout/card.md).

## Reference

Kind: interface

```ts
interface CardProps extends HTMLAttributes<HTMLElement> {
    readonly orientation?: 'vertical' | 'horizontal' | undefined;
    readonly render?: ((props: CardRenderProps) => ReactElement) | undefined;
}
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `orientation` | `readonly orientation?: 'vertical' \| 'horizontal' \| undefined;` | optional | `'vertical'` (default) stacks the parts; `'horizontal'` puts media and content side by side. |
| `render` | `readonly render?: ((props: CardRenderProps) => ReactElement) \| undefined;` | optional | Renders another root element (`<article>`, a link) with the computed props. Default `<div>`. |
