3 ms·
It's a set of conventions and utils allowing a parent component to mix properties into slot-aware children so they can be styled and configured to fit within th
by Rapzid 3y ago
It's a set of conventions and utils allowing a parent component to mix properties into slot-aware children so they can be styled and configured to fit within the parent context.
https://react-spectrum.adobe.com/react-spectrum/layout.html#slots https://react-spectrum.adobe.com/react-spectrum/layout.html#...
Too bad React doesn't have Vue slots built-in, but this is nice for streamlining component APIs. Works well with Tailwind classes.