Skip to content

Consistent dynamic param usage in components with bindings #440

@maximepvrt

Description

@maximepvrt

Some component params are passed via the block (::alert{:type="type"}), while others require {{$doc.meta.param}} in bindings.

Example:

---
type: "warning"
---

::alert{:type="type"}
Your warning
::

{{type}}:{{$doc.meta.type}}
<alert type="warning">
Your warning
</alert>

:warning

Proposal: harmonize so that dynamic params work consistently both in component blocks and in bindings.

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