🚀 Feature Proposal
Some radix-ui primitives receives asChild property, current twc implementation does not support forward asChild property to custom components. It would be cool if there was functionality to switch between two modes: provide asChild to component or use Slot component based on asChild prop (current implementation)
Motivation
To properly customize radix-ui primitives
Example
const AccordionItem = twx(AccordionPrimitive.Item).attrs({
'data-slot': 'accordion-item',
})`border-b last:border-b-0`
Pitch
react-twc will be fully compatible with radix-ui primitives.
🚀 Feature Proposal
Some
radix-uiprimitives receivesasChildproperty, currenttwcimplementation does not support forwardasChildproperty to custom components. It would be cool if there was functionality to switch between two modes: provideasChildto component or useSlotcomponent based onasChildprop (current implementation)Motivation
To properly customize
radix-uiprimitivesExample
Pitch
react-twcwill be fully compatible withradix-uiprimitives.