Skip to content

Patterns: allow custom previews to be supplied #28135

Open

Description

@johngodley

Patterns are available in the block inserter, and are shown as a preview of the pattern:

image

For some patterns this preview may be too bulky, or noisy, to give a good experience. Here's a big pattern that takes up too much space, and a small pattern that is hard to see (ignoring that Github shows it zoomed):

image

A nice enhancement would be if a pattern could support a custom preview or example, much like blocks do. This would also allow for more abstract representations of patterns that may not be easily identifiable.

image

As the pattern list uses the BlockPreview component then supplying it with a different set of HTML data should be possible.

Activity

  1. added
    [Feature] PatternsA collection of blocks that can be synced (previously reusable blocks) or unsynced
    on Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] PatternsA collection of blocks that can be synced (previously reusable blocks) or unsynced[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions