Loading...
A NSW Government website
Search for a command to run...
Social icons link to official social media channels. They give users a quick way to follow, share or engage with your content through familiar platforms.
Use social icons to:
alt="Follow NSW Health on LinkedIn"Use the following options to ensure icons meet branding, layout and accessibility needs.
| Prop | Type | Default | Description |
|---|---|---|---|
align | string | 'center' | Alignment of the social icons within the container. Options: left, center, right. |
size | number | 24 | Pixel size of each icon (applies to both width and height). |
color | string | 'nsw-grey-600' | Color applied to the icons. Must use NSW Government digital palette values for consistency and accessibility. |
gap | number | 8 | Gap in pixels between each icon. Adjusts spacing in the row. |
type | string | 'circle' | The shape or style of the social icons. Options: circle, circle-outlined, square, square-outlined, std. |
mobileClass | string | '' | Additional utility class applied for mobile-specific styling. |
socials | object | props.page.social.urls | Key/value object mapping platform name to its URL (e.g., { Facebook: "...", LinkedIn: "..." }). |
class | string | 'rounded hover:bg-primary-800/10' | Additional class string for styling the anchor tag wrapping each icon. |
reverse | boolean | false | If true, reverses the order of the icons in the row. |