Skip to content

Support component composition and reuse #59

@akonan

Description

@akonan

Description

Add syntax for defining reusable components and composing them.

Proposed Syntax

Define Component

<!-- Define in components/button.md -->
## Button {#component}
[{{text}}]{.{{variant}}}

Use Component

<!-- Use in main mockup -->
<Button text="Submit" variant="primary" />
<Button text="Cancel" variant="secondary" />

Features

  • Component library support
  • Props/parameters
  • Default values
  • Slot/children support
  • Component variants

Implementation

  • Component registry
  • Template interpolation
  • Recursive rendering

Priority

Medium

Labels

enhancement, components, reusability

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions