Skip to main content
Skip table of contents

Card View

Overview

Card View organizes content into a grid of cards. The primary usage of CardView is that it helps to give a rich feel and good looking to the UI design in a way that is not visually overwhelming.

Card View consists of Card, CardHeader, CardContent, CardAction, and two Button. You can add more basic components in order to make your design look better.

Document - Guides - Dart-IDE - Basic Components - Card View

Import

CODE
import {
  Button,
  Card,
  CardActions,
  CardContent,
  CardHeader,
} from '@mui/material';

The above source will be imported automatically after dragging and dropping the Basic Component to the UI Preview Panel.

Code Sample:

CODE
<Card
          sx={{'width': '285px',}}>
      <CardHeader title="Title" titleTypographyProps={'[object Object]'} />
      <CardContent
            sx={{'paddingTop': '0px',}}>Hello, welcome to Dart-Suite
        </CardContent>
      <CardActions>
          <Button
              size="small"
              color="secondary"
              fullWidth={true}
              sx={{'color': 'dark blue',}}>Discover</Button>
            <Button size="small" color="secondary" fullWidth={true}>Help</Button>
        </CardActions>
</Card>

 

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.