@navinc/base-react-components
Version:
Nav's Pattern Library
6 lines (3 loc) • 517 B
Markdown
# Article
The <Article /> component is specifically for resource content served up from the WordPress API, as much of its styling is configured for the elements that will be returned from this source.
<Article /> sets the excerpt and content HTML directly into its elements. A toggle at the bottom of the article when expanded will scroll the user back up to the article's `offsetTop`, and this is recalculated every time the Article is opened or closed to account for any displacement from open elements above it.