Skip to content

Arbitrary props or styles for structural components #738

@robcostello1

Description

@robcostello1

In our designs, our sections are divided by graphics like the following:

Screenshot 2024-09-10 at 10 20 14

In case that's difficult to see there's a sweeping graphic at the transition point between the two background colours.

We could define our own sections but then there would be two sections and our content editors would have to nest sections within sections, which is confusing.

Ideally we'd like to be able to use our own section component in place of the existing structural component, or to be able to configure the structural component how we see fit. Maybe it would be possible to configure a "variant" variable (or any arbitrary variables) to apply these styles, through the options argument in defineComponents.

And/or the ability to pass in our own replacement components (based on a strict schema) as an option?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions