Components
SocialIcon
Draws a social network's mark in the surrounding text colour, on the same size
scale as Icon. Without a label it is aria-hidden; with one it becomes an
image with that accessible name.
Usage
Best practices
Set
labelonly when the icon stands alone, such as inside an icon-only link; beside visible text leave it off so the mark is hidden from assistive tech.The mark paints with
currentColor, so colour it with a text-colour class on the icon or a parent (className="text-muted-foreground"), not a brand fill.Size with the
sizetoken ("sm","lg"…), notclassName="size-6"; it shares theIconscale so a mark lines up with the icons around it.
Props
Also exports
- const
SOCIAL_NETWORKS - type
SocialIconProps - type
SocialNetwork
Composition
Builds on
Used by