Skip to main content

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

Text format
{{ SocialAccount.render({
  format: "text",
  account: { title: "GitHub", url: "https://github.com/" }
}) }}
Icon from the contact record The default format draws the account's logo, falling back to its title.
{{ SocialAccount.render({ account: cms.contact.0.socialAccounts.0 }) }}

Params

ParamTypeDescription
accountobjecttitle, logo (url, alt, inline), and url. Renders nothing when url is missing.
formatstringicon (default) renders the logo SVG when logo.url is set, otherwise the title. Any other value renders the title text.
sizestringLogo size class for the icon format. Defaults to size-10.
classesstring | variant map | arrayAppended 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.