Open vcanales opened 3 months ago
Come up with a way for the UI to display lots of categories.
Was playing around with something like this. Rough, but you get the idea:
https://github.com/user-attachments/assets/b3f52816-615a-4efe-9283-2e8f797fbea1
Look at how themes can define their own examples for the "Overview" category.
The MVP would be to create a static, curated list of Core blocks to display on the landing page. See: https://github.com/WordPress/gutenberg/issues/53431#issuecomment-2260240806
The style book landing page would, however, provide a convenient space to feature a theme's custom blocks or (one day) patterns.
That means that Gutenberg would need to define a, or piggyback off an existing, API to allow themes et. al to register blocks/patterns that should feature on the landing page. Ideally, the order in which they appear should be configurable.
Some random thoughts/options:
$config['featured'] = true
. add_filter( 'add_to_style_book', $block_or_pattern_name, $order )
.Come up with a way for the UI to display lots of categories.
The tabs component is used to display the categories. The tab can display with horizontal scrolling —https://wordpress.github.io/gutenberg/?path=/story/components-tabs--size-and-overflow-playground — but it'd be good to be able scroll to the active tab.
Part of:
Several pieces comprise the work required to iterate over the discussion in #53431, so I'm starting this tracking issue to compile the efforts:
TODO
In Progress
Misc bugs and enhancements
Not planned