0.0.2 • Published 8 months ago

@licuido-ui/ui_media-card v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

MediaCard

The MediaCard is a reusable React component that provides a customizable and versatile card layout for displaying media content, such as images, along with related information, titles, descriptions, and action buttons.

Author

Link

Story Book Link ButtonGroup

PlayGround

Try it have a fun codeBox

Installation

npm i @licuido-ui/ui_media-card

Import component

import { MediaCard } from '@licuido-ui/ui_media-card';

Usage

<MediaCard cardData={[]} />

Image

alt text

Usage

      <MediaCard
        cardImage={'image-url.jpg'}
        title={'Sample Title'}
        mailId={'sample@email.com'}
        mobile={'123-456-7890'}
        desc={'This is a sample description for the MediaCard component.'}
        buttons={[
          {
            text: 'Button 1'
            onClick: () => {},
            style: {},
            disabled: false,
          },
        ]}
    />

Props

NameTypeDefaultDescription
idstringstringstring
classNamestring''Custom class name for the root element of the MediaCard.
sxSxProps\{}Custom style object for the root element.
cardImagestring(required)The URL of the image to be displayed on the card.
buttonsButtonItem[][]An array of buttons to be displayed on the card.
titlestring''The title to be displayed on the card.
mailIdstring''The email address to be displayed on the card.
mobilestring''The mobile number to be displayed on the card.
dividerbooleantrueSet to true to display a divider between the content and buttons.
descstring''The description to be displayed on the card (applicable only in 'contentOriented' variant).
variant'imageOriented' or 'contentOriented''contentOriented'The variant of the MediaCard, either 'imageOriented' or 'contentOriented'.
cardStyleSxProps{}Custom style object for the card element.
cardWrapperStyleSxProps{}Custom style object for the wrapper element around the card.
cardMediastyleSxProps{}Custom style object for the card media (image) element.
cardContentStyleSxProps{}Custom style object for the card content element.
titleStyleSxProps{}Custom style object for the title element.
subTitleWrapStyleSxProps{}Custom style object for the subtitle wrapper element.
mailIdStyleSxProps{}Custom style object for the mailId element.
dotStyleSxProps{}Custom style object for the dot separator element.
mobileNumberStyleSxProps{}Custom style object for the mobile number element.
dividerStyleSxProps{}Custom style object for the divider element.
descStyleSxProps{}Custom style object for the description element (applicable only in 'contentOriented' variant).
buttonWrapStyleSxProps{}Custom style object for the wrapper element around the buttons (applicable only in 'contentOriented' variant).