Card

A bordered container with title, description and footer.

Import

import { Card } from "@tarve/core";

Usage

Card.tsx
import { Button, Card, Input } from "@tarve/core";

<Card title="Create project" description="Deploy your new project in one click." footer={<Button>Deploy</Button>}>
  <Input placeholder="Project name" />
</Card>

Props

PropTypeDefault
description string—
footer Child—
title string—
Inherited from ViewProps 11 props
PropTypeDefault
align Style["align"]—
dismissOnOutside boolean—
dragRegion boolean—
flex number—
focusable boolean—
gap number—
justify Style["justify"]—
onOutsideClick () => void—
padding Style["padding"]—
portal boolean—
windowAction "minimize" | "toggleMaximize" | "close"—

Common props

Shared by every component. See descriptions →

childrenhighlightidkeymotionFromonHighlightonPasteonTransitionEndrovingGroupstyle