component :: Social Media Links

The .socialMedia component consists of an unordered list of links to social media accounts and their corresponding icons.

FileDescriptionSource
component.socialMedia.cssAll social links styles (.socialMedia)Github

The following 4 sizes and 19 icons (18 social media platforms + 1 generic link icon) are available out of the box.

PlatformIcon
Unknown URL
Discord
Facebook
Github
Instagram
Linkedin
Pinterest
Reddit
Snapchat
Telegram
Tiktok
X
Youtube
Twitch
Odysee
Minds
Substack
Bitchute
Bastyon

HTML

Available modifiersDescription
.socialMediaDefault - 24px
.socialMedia + .socialMedia-md32px
.socialMedia + .socialMedia-lg44px
.socialMedia + .socialMedia-xl64px

When using the HTML component you’ll need to include the SVG icons “manually.” All the icons are available on Github. If you’d like to use different icons, Lucide is a great resource.

Astro component

The Astro component (Github) takes 3 props:

PropTypeDefaultDescription
urlsarray[]An array of urls, or { url, label } objects to override the accessible label (e.g. "mCSS on GitHub").
sizestringundefinedmd, lg, xl.
newTabbooleantrueOpen links in a new tab. Set to false to opt out.
classstringundefinedAdditional CSS classes, useful for helper classes.

Examples

HTML examples