core: add new fields to MitosisComponent type: slots
See original GitHub issueexport const createMitosisComponent = (
options?: Partial<MitosisComponent>,
): MitosisComponent => ({
'@type': '@builder.io/mitosis/component',
imports: [],
inputs: [],
meta: {},
state: {},
children: [],
hooks: {},
context: { get: {}, set: {} },
name: options?.name || 'MyComponent',
subComponents: [],
...options,
});
a component needs to have all named slots available and I think it should be added here. and inside of children we need Slot nodes
'@type': '@builder.io/mitosis/component',
slots: {
mySelectorName: createMitosisComponent({})
},
children: [
createMitosisNode({
name: 'Slot',
properties: {
name: 'mySelectorName'
}
});
],
Issue Analytics
- State:
- Created a year ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
mitosis/components.md at main - GitHub
Write components once, run everywhere. Compiles to Vue, React, Solid, Angular, Svelte, and more. - mitosis/components.md at main · BuilderIO/mitosis.
Read more >BIL 151 - Mechanisms of Mitosis - This is bio.miami.edu
In this project, you and your teammates will predict the outcome of treating a rapidly dividing tissue (onion root tip) with a substance...
Read more >Lysosomal Changes in Mitosis - Cells - MDPI
When cells enter mitosis, most cellular processes that are not directly ... Mitotic cells decrease levels of lysosomal proteins, increase lysosome size, ...
Read more >Mechanisms of Cellular Senescence: Cell Cycle Arrest and ...
Depending on the cell type and intensity and nature of the stress, ... complex also requires phosphorylation of the LIN52 component of the...
Read more >Talking Drupal #353 - Native Web Components
Because you know, in core Drupal nine, Drupal eight, you can add a ... and slots where you're going to really kind of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@steve8708 Sure thing. would love to add an eslint rule in the future 🚀 🚀 🚀
great idea. only thing is this should probably be on
@builder.io/mitosis/node
right? aka when you haveit would become
this would be a great eslint rule to eventually add too (cc @sahilmob), essentially that
is not allowed, you can only put jsx expressions as binding values if the binding name starts with
slot