molecules
Social account
One social account as an external profile link, shown as an icon or as its title. Use the text format where there is no logo.
Specimens
{{ SocialAccount.render({
format: "text",
account: { title: "GitHub", url: "https://github.com/" }
}) }}{{ SocialAccount.render({ account: cms.contact.0.socialAccounts.0 }) }}Params
| Param | Type | Description |
|---|---|---|
account | object | title, logo (url, alt, inline), and url. Renders nothing when url is missing. |
format | string | icon (default) renders the logo SVG when logo.url is set, otherwise the title. Any other value renders the title text. |
size | string | Logo size class for the icon format. Defaults to size-10. |
classes | string | variant map | array | Appended to the link’s baseline through the classes filter, at every breakpoint. |
Notes
The link opens in a new tab, and its accessible name is the account title.