Skip main navigation
We use cookies to give you a better experience, if that’s ok you can close this message and carry on browsing. For more info read our cookies policy.
We use cookies to give you a better experience. Carry on browsing if you're happy with this, or read our cookies policy for more information.

Pattern Library
Sharing Section

The sharing section molecule is used when we want to encourage learners to share something specific via social media. It always sits at the bottom of the page.

= render partial: "shared/molecules/sharing_section", locals: {content: content_for_sharing_section_example, more_info: 'about', modifier: 'alt'}

The content and options for the module must be provided as locals:

{
  content: {
    title: 'Share this guide',
    message: 'Recommend the Crowdsourced Guide to Learning to someone you know.',
    links: data_for_sharing_learning_guide,  # content for the Sharing Links molecule
  },
  more_info: 'about',  # links to About page at bottom of the module (possible values: 'about', 'faq', false)
  modifier: 'alt'  # adds the class "a-section--alt" to the organism
}