emberjs / emberjs/rfcs

Pre-RFC: Splat Areas

Open
#517 15 comments 8 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
801
Forks
409
PR merge metrics
No merged PRs in 30d

Description

> Based on https://mobile.twitter.com/knownasilya/status/1152293795901464577

With the addition of `...attributes`, element modifiers and having multiple top elements in a glimmer component, it has become obvious that `...attributes` is too limited (I'm sure the API was mean't to be simple while patterns emerge). Think of a component that wraps an input and a label into a nice package. Currently you'd need to either have the user yield out subcomponents and recreate the same structure or provide custom arguments for each element/component.

What if we could expose elements/components for customization by name, for example:

```hbs

```

And the user card would apply it like so:

```hbs



{{! more stuff here }}

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.