Skip to Content
🎉 Coral now has an MCP Server, check out the docs
DocumentationOrganismsFooterFooterSocialLink

FooterSocialLink

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

Basic Usage

import { FooterSocialLink } from '@octopus-energy/coral/organisms'; import { IconFacebook } from '@octopus-energy/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 @octopus-energy/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