Skip to Content
🎉 Coral x Panda has been released 🎉 Read the Migration Guide

FooterSocialLink

FooterSocialLink is a sub-component of the Footer organism, it is used to display a social media link.

Basic Usage

import { FooterSocialLink } from '@krakentech/coral-organisms'; import { IconFacebook } from '@krakentech/icons'; <FooterSocialLink href="#!" icon={<IconFacebook size={44} />} label="Facebook" />

Event Handlers

<FooterSocialLink href="#!" icon={<IconFacebook size={44} />} label="Facebook" onClick={() => console.log('SocialLink clicked!')} />

Full API

NameTypeDefault
hrefstring

Link URL.

iconReact.ReactNode

Link to the icon image, pass a React component from @krakentech/icons, or your chosen icon library.

labelstring

Used for both the image alt and the aria-label.

onClickVoidFunction

Optional function to use onClick, does not override anchor behaviour.

Last updated on