deven-org / boiler

A fully customisable and tokenised design system boilerplate built by Accenture Song
https://boilerds.com/
MIT License
17 stars 7 forks source link

Investigate if & how slots can inherit props & how to only allow certain components in a slot #593

Open thrbnhrtmnn opened 11 months ago

thrbnhrtmnn commented 11 months ago

Description / User Story

With #387 we now have the first component to use slots. What we have not figured out yet is if and how components that have been placed inside a slot can inherit props like theme or size from the "parent" component.

What we also have not figured out is if and how we can only allow certain components to be placed inside a slot.


Acceptance Criteria


Background information

thrbnhrtmnn commented 10 months ago

Might not be possible, and if it is possible, it may even not be a good idea. We moved the task to the backlog in todays planning.

thrbnhrtmnn commented 8 months ago

We stumbled upon a solution how this might still be possible: https://stackoverflow.com/questions/58169882/call-litelement-method-from-outside-the-element

This was found when looking into validation.