0.0.4-alpha.8 • Published 2 years ago

@graffft-waggle/social-banner v0.0.4-alpha.8

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

filename: /packages/molecules/SocialBanner.tsx

SocialBanner API

The API documentation of the SocialBanner Graffft Waggle component.

Import

import { SocialBanner } from '@graffft-waggle/social-banner';

SocialBanner

Required Props

interface ButtonLink {
  iconTitle: IconType;
  buttonColor: string;
  iconColor: string;
  href: string;
}
NameTypeDescription
buttonLinksButtonLink[]icon items to be displayed in the banner
enum SocialBannerDirection {
  HORIZONTAL = 'horizontal',
  VERTICAL = 'vertical',
}

Optional Props

NameTypeDefaultDescription
linkSizenumber24size (width and height) of the banner item
paddingSizenumber'4'padding inside banner item
itemMarginstring5pxmargin between banner items
directionSocialBannerDirectionhorizontaldirection of items
customScssstring''custom scss for wrapper element

Demos

  • TODO improve the confusing interface on this component