0.1.0 • Published 2 years ago

@acctglobal/social-media-card v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Social Media Card - Documentation


Component developed to be used as a contact block through a social network for the client. It's basically getting texts, an image.

Texts - Multiple texts can be received Images - This data would be an image, that is, you can pass the URL of the image or add the svg in the code and import the image to the component in addition to assigning a link to the image

  texts: string[];
  images: {
    src: string;
    alt: string;
    link: string;
  }[];

Installation

yarn add @acctglobal/social-media-card
npm install @acctglobal/social-media-card
import { SocialMediaCard } from '@acctglobal/social-media-card'

All props

PropTypeDefaultDescription
textsstringInclusion of texts
imagesstringInclusion of images
flexDiretionanycolumnSets the direction container
alignItemsstringcenterSets the direction container
widthContainernumber - stringSets the width of the container
imgWidthnumber - stringSets the width image of the container
justifyContentstringspace-betweenSets the position of container
backgroundColorstring#F4F4F4Sets the background color

All classes for styling

ClassDescription
container-social-cardMain container
container-textContainer that wraps the texts
container-imagesContainer that wraps the images
0.1.0

2 years ago