Skip to content

[✨] Default value for named slots #51

@hassanzohdy

Description

@hassanzohdy

Is your feature request related to a problem?

No

Describe the solution you'd like

The FR is about adding the ability to add a default value when a named slot is not passed to the component.

There are tons of use cases that could be used especially the packages authors that could give the developers the option to add their own components i.e icon, header, footer..etc and if it is not present then use a default value for that named slot.

Describe alternatives you've considered

Maybe passing it as a component prop but that would lose the sense of named slots existence.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions