New to KendoReactStart a free 30-day trial

CardProps

Interface

Definition

Package:@progress/kendo-react-layout

Properties

children?

ReactNode

Sets the Card child elements.

Example:
jsx
<Card>
  <CardBody>Content</CardBody>
</Card>

Sets additional classes to the Card.

Example:
jsx
<Card className="custom-class">Content</Card>

dir?

string

Sets the dir of the Card.

Example:
jsx
<Card dir="rtl">Content</Card>

Sets the Card orientation.

The supported values are:

  • horizontal - Default
  • vertical
Default:

horizontal

Example:
jsx
<Card orientation="vertical">Content</Card>

style?

CSSProperties

Sets additional CSS styles to the Card.

Example:
jsx
<Card style={{ backgroundColor: 'blue' }}>Content</Card>

type?

string

Sets the Card type.

The supported values are:

  • default
  • primary
  • info
  • success
  • warning
  • error
Default:

default

Example:
jsx
<Card type="primary">Content</Card>