Skip to content

Props complexity for custom blocks #444

Open
@GuillaumeOnepilot

Description

@GuillaumeOnepilot

Is your feature request related to a problem? Please describe.
I currently try to benchmark BlockNote for my use cases, including complex custom blocks, currently, the type system is only allowing props to be string, number or boolean, and for example, my use case is a block that have an array of object containing a title and some text, each element of the array is a possible display of the block, this doesn't look possible (or with many @ts-ignore?) maybe I'm missing something or do something wrong.

Describe the solution you'd like
Being able to have complex props types

Describe alternatives you've considered
Encode my objects/array to JSON, but it's messy and really not great

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions