DRAFT
A content view toggle button enables users to switch content views for collections of data, such as a card view (displaying content in cards that form a grid), table view (displaying content in a table), or list view (displaying content in full-width cards that form a list). This component allows users to consume content in a way that fits their personal preference, or to change views in cases where the same content is serving multiple user scenarios that would benefit from multiple views.
Contributors | |
---|---|
Slack channel | |
Paragon Jira ticket | |
Other Jira tickets | |
Design resources | |
Technical docs |
Similar components:
Content views
https://www.patternfly.org/v3/pattern-library/content-views/card-view/
https://www.patternfly.org/v3/pattern-library/content-views/list-view/
https://www.patternfly.org/v3/pattern-library/content-views/table-view/
Toggle button
Design
https://www.figma.com/file/rfZHEJrPGe0oEg94Lofs7D/Catalog-exploration?node-id=509%3A361https://www.figma.com/file/xwUFqCJfistYaqvuAAhpgr/Search-enhancements?node-id=861%3A8978https://www.figma.com/file/qVBB0zuI9tcolyB9ylIrOF/Content-Library-Editing-Low-Fi?node-id=639%3A12130🌳 Variants
Depending on the use case, the toggle button might switch between card view and list view, card view and table view, or between all three views.
🌞 Best Practices
Do | |
Don't |
♊ Related Components
https://paragon-edx.netlify.app/components/button/button-group/
https://paragon-edx.netlify.app/components/datatable/dataviews/
📐 Specification
Existing Paragon resources as listed above in Related Components can be leveraged.
This proposal would create a new UI toggle button component that will allow the user to switch between existing table and card views. Additionally, list view would be a new data view option, taking advantage of the existing card component displayed at a full-width horizontal orientation.
Redlined Design Spec
♒ Behaviors
User can control orientation of data into table or cards Mobile behaviors |
💕 Accessibility
Notes
Is this its own component, or a subcomponent of the data table?
List view vs card view - utilize existing card configurations