Button Variants
Different style variants available for the button component
Button Variants
React Button Pro offers multiple style variants to suit different UI needs and hierarchies.
Example
Available Variants
The following style variants are available:
solid
- Default solid background style (default)outline
- Bordered style with transparent backgroundflat
- Solid background with lower contrastlight
- Lighter background with subtle hover effectghost
- Transparent background with hover effecttext
- Text-only style with hover effect
Usage
Best Practices
-
Variant Selection:
- Use solid for primary actions
- Use outline for secondary actions
- Use ghost/text for tertiary actions
- Use light for subtle actions
- Use flat for grouped actions
-
Visual Hierarchy:
- Maintain clear action hierarchy
- Use consistent variants for similar actions
- Consider the context and importance
-
Combinations:
- Pair variants with appropriate colors
- Consider contrast with background
- Match variant with action type
-
Context Usage:
- Use solid variants for main CTAs
- Use outline/ghost for optional actions
- Use text variant for subtle actions
- Consider mobile touch targets
Last updated on