# SocialLinks

Accessible row of outbound social and profile links

> Component ID: `social-links`
> Import: `import { SocialLinks } from '@slipstream-ui/core'`
> Docs: https://slipstreamui.com/docs/components/social-links
> Registry: https://slipstreamui.com/registry/social-links.json
> Tier: molecule · Package: @slipstream-ui/core@0.16.0
> Manifest schema: v1 · manifest: v1

## 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.

## Props

| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
| links | `SocialLink[]` | — | yes | Destinations: { href, label, icon? } — icon may be an SVG element or component |
| label | `string` | `Social links` | no | Accessible name for the navigation landmark |
| iconSize | `IconProps['size']` | `md` | no | Icon size passed through to Icon |
| iconTone | `IconProps['tone']` | `muted` | no | Icon tone passed through to Icon |
| className | `string` | — | no | Additional CSS classes to apply |

## Examples

### Footer social row

Icon links named by their platform

```tsx
<SocialLinks
  label="Follow us"
  links={[
    { href: 'https://github.com/acme', label: 'GitHub', icon: GithubIcon },
    { href: 'https://x.com/acme', label: 'X', icon: XIcon },
  ]}
/>
```

### Text-only profile links

Links without icons render as labeled text

```tsx
<SocialLinks
  links={[{ href: 'https://example.com/team', label: 'Team page' }]}
/>
```

## Anti-patterns

- **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.

## Accessibility

- **Named destinations**: Icon-only links get aria-label={label}; text links use visible text
- **Safe external links**: Every link renders target=_blank rel=noopener noreferrer
- **Keyboard operation**: Native anchors with a visible focus-visible ring

## Composition

- Compose with **SiteFooter** — SocialLinks is the standard outbound-link row for footers and contact strips
  
  ```tsx
  <SiteFooter contact={...}><SocialLinks links={social}/></SiteFooter>
  ```
- Compose with **Icon** — Each link icon renders through Icon with iconSize/iconTone props
  
  ```tsx
  <SocialLinks iconSize="lg" iconTone="default" links={links}/>
  ```
- Related: Icon, SiteFooter, ContactStrip

