Card

Last Update : 11 July, 2024 | Published : 01 July, 2023 | 2 Min Read

Cards - Are mainly used to display details about a single topic - can be actions or just content. Cards should be relevant actionable information. For example if you want to show you companies sales in numbers you can use a card to highlight it in a better way. Mainly used on:

  • Homepages
  • Dashboards

Import

import Card, {StatsCard,} from '@intelops/intelops_ui/packages/react/components/Card/src';

Create a Card

<Card
  className="w-full"
  title="IntelOps"
  titleHref="https://capten.ai/"
  caption="Trusted By Fast Growing Brands And Enterprises. Be The Captain."
  body="Website is under active development.
  Our products are currently in Stealth mode development.
  Building the Next-Gen Tech For Cloud-Native.
  Ai-based framework to democratize Cloud Native Technology."
  imageURL="https://capten.ai/images/banner/homepage/homepage-banner.svg"
  buttonName="Select"
/>

Props

NameTypeDescription
idstringUnique to each element can be used to lookup an element getElementById( )
classNamestringTo add new or to override the applied styles
imageURLstringTo access images directly with a link instead of downloading them
imageAltstringIncase the original image does not work you can add a different link or some text in its place
titlestringcards title
titleHrefstringTo add url to the title - to navigate to another page onClick
captionstringdescription/ caption on the card
bodystringcontent of the card
buttonNamestringAdd button name to specify it’s action onClick

Create a Stats Card

<StatsCard
  amount="50,000"
  title="Users"
  percentageChange="40%"
  icon= {[<ChartPieIcon color="white" />]}
/>

Props

NameTypeDescription
idstringUnique to each element can be used to lookup an element getElementById( )
classNamestringTo add new or to override the applied styles
amountstringThe number or the information main highlighted text
titlestringTitle of the stats card
percentageChangestringThe percentage or information- highlighted text on the side
iconnodeicon on the card

Looking for Cloud-Native Implementation?

Finding the right talent is pain. More so, keeping up with concepts, culture, technology and tools. We all have been there. Our AI-based automated solutions helps eliminate these issues, making your teams lives easy.

Contact Us