Title
Regular paragraph works fine
Content
{/* Other elements too */}
```
### Slot Overwriting
If you add a slot with the same name as an existing one, the new slot replaces it:
```tsx theme={"theme":{"light":"min-light","dark":"synthwave-84"}}
const Base = withSlots(Root, { Item: ItemA });
const Extended = withSlots(Base, { Item: ItemB });
// Extended.Item is ItemB
```
## See Also
* [Slots Concept Guide](/concepts/slots)
* [Context](/concepts/context)
# How better-styled compares to other variant libraries
Source: https://better-styled.com/comparison
Choosing the right variant library for your project? Here's how better-styled compares to Tailwind Variants, CVA, Windstitch, and classnames.
## Feature Comparison
| Feature | better-styled | Tailwind Variants | CVA | Windstitch | classnames |
| ------------------------------- | :-----------: | :-----------------: | :-----------------: | :---------------: | :---------------: |
| Variants | ✅ | ✅ | ✅ | ✅ | ❌ |
| Compound Variants | ✅ | ✅ | ✅ | ❌ | ❌ |
| Default Variants | ✅ | ✅ | ✅ | ✅ | ❌ |
| **Context Propagation** | ✅ | ❌ | ❌ | ❌ | ❌ |
| **Compound Components (Slots)** | ✅ | ✅ | ❌ | ❌ | ❌ |
| Type Inference | ✅ Automatic | ⚠️ Needs `as const` | ⚠️ Needs `as const` | ✅ Automatic | ❌ |
| `tailwind-merge` | ✅ Built-in | ✅ Optional | ❌ Manual | ❌ | ❌ |
| React Native | ✅ | ⚠️ Via NativeWind | ⚠️ Via NativeWind | ⚠️ Via NativeWind | ⚠️ Via NativeWind |
| **Function Composition** | ✅ | ❌ | ❌ | ❌ | ❌ |
| Zero Config | ✅ | ⚠️ | ✅ | ✅ | ✅ |
| Bundle Size | \~3kB | \~5kB | \~1kB | \~1.4kB | \~0.5kB |