Skip to content

Support Vue scoped slots: pass browser data from a component to its fill #168

Closed

Description

@JuroOravec

Problem

Vue's scoped slots let a component pass its own browser data to the content a parent puts in its slot (<template #item="{ row }">). Citry's slots don't support this today:

  • A fill can't read slot data that the child provides from Vue (no v-slot/#name="{ ... }" on Citry component tags).
  • <c-slot> can pass Python data to a fill (rendered on the server), but not browser data from the child's Vue state.

So a component that owns browser state (a list with a client-side filter, a table with sortable rows) can't let its caller decide how each item renders using that state.

What to explore

  • Accept Vue slot props on fills and pass browser data through <c-slot>.
  • How this fits server-rendered HTML and hydration: the server renders the fill with Python data; the browser re-renders it with the child's Vue data.
  • How it interacts with Citry's fill scope (fills keep the author component's Vue data) and with Events re-renders.

Activity

  1. JuroOravec commented on Nov 1, 2026

    @JuroOravec
    MemberAuthor

    Done for 0.7.0: #445 (syntax and runtime), #447 (server HTML for v-slot fills) and #521 (editor and citry check). The group components that build on it are tracked in #169 (v1.1).

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions