lit / lit/lit.dev

[tutorial] Interacting with slotted children

Open
#871 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
142
Forks
230
PR merge metrics
No merged PRs in 30d

Description

Cover slot-related topics from here: https://lit.dev/docs/components/shadow-dom/

Possibly add setting a class on a slotted child. For example, implementing something like a select or menu element that takes menu items as slotted children.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Shadow DOM documentation at lit.dev/docs/components/shadow-dom/ and review the existing coverage of slots and slotted children. The work is done when the tutorial clearly covers the requested slot-related topics, including the possible menu or select example and class handling for slotted children.

Written by the indexing model from the issue text.

Assessment

Domain
documentation, web-dev
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.