Installation
Separators in Sync UI are built using Material-UI and React Icons:Variants
Dashed
A dashed line separator with improved visibility.Icon
A separator with an icon in the center.Zigzag
A zigzag pattern separator.Gradient
A separator with a smooth gradient transition.Shimmer
A separator with a shimmering animation effect.Dotted
A separator with a dotted pattern.Starry
A separator with star icons.Customization
All separator variants can be customized:- Colors: Use theme palette values for divider, primary, and secondary colors
- Sizes: Adjust height, border width, and icon sizes
- Spacing: Modify padding and margin values
- Animations: Customize keyframes timing and effects
- Labels: Add optional text labels above separators
- Icons: Replace with any icons from React Icons
Props
Common props across separator variants:label(optional): Text to display above the separator
Usage Tips
- Use Dashed or Dotted for subtle section breaks
- Use Icon or Starry for interactive or decorative separators
- Use Gradient or Shimmer for modern, eye-catching dividers
- Use Zigzag for playful or creative designs
Dependencies
@mui/material- Material-UI componentsreact-icons- Icon library (for Icon and Starry variants)