SocialLinks
Row of outbound social/profile links. Icon-only links get aria-label from each entry's label; every link renders target=_blank rel=noopener noreferrer.
Design intent
SocialLinks standardizes outbound profile links: every destination is named, external links get safe rel attributes, and icon-only links stay keyboard and screen-reader accessible.
npx @slipstream-ui/cli@latest add social-linksProps
| Prop | Type | Default | Description |
|---|---|---|---|
| links | SocialLink[] | required | { href, label, icon? } — icon may be an SVG element or component. |
| label | string | 'Social links' | Accessible name for the navigation landmark. |
| iconSize | IconProps['size'] | 'md' | Icon size passed through to Icon. |
| iconTone | IconProps['tone'] | 'muted' | Icon tone passed through to Icon. |
| className | string | — | Additional CSS classes to apply. |
Anti-patterns
validate_usage is the MCP tool that rejects these mistakes: the same list agents see over MCP and in the canonical markdown.
Don't reuse the platform name as the only link text
Each link is named via aria-label or visible text; identical unlabeled icons in a row are indistinguishable to screen readers.
tsx// Avoidlinks.map(l => <a href={l.href}><Icon icon={l.icon} /></a>)// Prefer<SocialLinks links={links} />
Accessibility
- Icon-only links are named via aria-label={label}; text links use visible text.
- All destinations render target=_blank rel=noopener noreferrer.
- Hit area is h-9 w-9 for icon links, above the 24px minimum.
Content guidelines
Link labels
- Name the platform or destination
- Prefer "GitHub" over "our GitHub" for icon links
- Keep text-link labels short
Good examples
- GitHub
- Dribbble
Bad examples
- Click here
- Social
- Follow
Composition
Compose with SiteFooter: SocialLinks is the standard outbound-link row for footers and contact strips
<SiteFooter contact={...}><SocialLinks links={social}/></SiteFooter>
Compose with Icon: Each link icon renders through Icon with iconSize/iconTone props
<SocialLinks iconSize="lg" iconTone="default" links={links}/>
Related components: Icon, SiteFooter, ContactStrip
Dependencies
What the registry installs alongside this component. Package imports already include these.
npm packages
- class-variance-authority
- clsx
- tailwind-merge
Browser support
| Browser | Tested versions |
|---|---|
| Chrome | 111+ (Mar 2023) |
| Edge | 111+ (Mar 2023) |
| Firefox | 121+ (Dec 2023) |
| Safari | 17.2+: macOS & iOS (Dec 2023) |
Slipstream components rely only on CSS custom properties, Flexbox/Grid, and ARIA, the everyday baseline of the last two years of evergreen releases. Anything newer is progressive enhancement: unsupported browsers keep full functionality with static behavior instead of animations.