When to use the Directive vs the Component
mainChoose between the Directive and the Component based on your layout requirements:
Use the Directive when:
- You want to apply the liquid glass effect to existing elements.
- You need more control over the DOM structure.
- You're working with complex layouts where components might interfere.
- You want to apply the effect to third-party components.
Use the Component when:
- You want a complete glass container solution.
- You prefer the component-based approach.
- You need the full feature set with minimal setup.
- You're building new UI elements from scratch.