Lead Component: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{DrupalBack}} | |||
The '''Lead''' component is useful for pull quotes or highlighting other important text. Optionally, a Call to Action Link can be used to guide visitors toward related content. | |||
== Elements == | == Elements == | ||
| Line 9: | Line 8: | ||
# Call to Action Link | # Call to Action Link | ||
{{Screenshot|Screenshot 2024-06-14 at 1.40.19 PM.png|800px|Diagram showing the fields that make up the Lead component.|The Lead component fields.}} | |||
== Examples == | == Examples == | ||
{{Callout|type=tip|title=Interactive Example|content=The preview below shows the Lead component using its default configuration. | |||
To experiment with different settings, open the interactive component playground. | |||
'''[https://toolkit.swarthmore.edu/?path=/story/swarthmore-theme-components-lead Open Component Playground]'''}} | |||
{{StorybookComponent|id=swarthmore-theme-components-lead|height=400}} | {{StorybookComponent|id=swarthmore-theme-components-lead|height=400}} | ||
| Line 17: | Line 22: | ||
== Step-by-step Instructions == | == Step-by-step Instructions == | ||
# Provide | # Provide a '''Title''' for the '''Lead'''. ''Note: This is used for internal purposes only and is not displayed to visitors.'' | ||
# Provide the | # Provide the '''Abstract''' that will be presented as the '''Lead''' component. | ||
# Optionally, provide | # Optionally, provide a '''Call to Action Link''' to direct visitors to related content. | ||
[[Category:Drupal]] | [[Category:Drupal]] | ||
Latest revision as of 13:08, 10 July 2026
The Lead component is useful for pull quotes or highlighting other important text. Optionally, a Call to Action Link can be used to guide visitors toward related content.
Elements
- Title (required, not displayed)
- Abstract
- Call to Action Link
Examples
Interactive Example
The preview below shows the Lead component using its default configuration.
To experiment with different settings, open the interactive component playground.
Open Component Playground
Step-by-step Instructions
- Provide a Title for the Lead. Note: This is used for internal purposes only and is not displayed to visitors.
- Provide the Abstract that will be presented as the Lead component.
- Optionally, provide a Call to Action Link to direct visitors to related content.
