ItemCard

This component is used to render some item in a standard card form. This includes a profile pic, a title, a subtitle and a list of fields and values.

Installation

import { ItemCard } from 'uxp/components';

Signature

const ItemCard: React.FunctionComponent<IItemCardProps>

Examples

<ItemCard
     item={{
         request: "AC Extension request #36",
         user: "Johnson & Johnson",
         section: "Parking 1",
         status: "approved",
         date: "23/0702020"
     }}
     titleField="request"
     subTitleField="date"
     className="data-table-item"
 />

Properties

Name
Type
Mandatory
Default Value
Example Value

item

any

No

-

-

imageField

string

No

-

-

titleField

string

No

-

-

subTitleField

string

No

-

-

nameField

string

No

-

-

className

string

No

-

-

image

string

No

-

-

name

string

No

-

-

title

string

No

-

-

subTitle

string

No

-

-

size

No

-

-

shape

No

-

-

Last updated