Overview
Control border appearance with style utilities. Border style works together with border width, color, and radius to create complete border styling.Border Style Utilities
| Class | Style | CSS | Usage |
|---|---|---|---|
.border-solid | Solid | border-style: solid; | Solid line border |
.border-dashed | Dashed | border-style: dashed; | Dashed line border |
.border-dotted | Dotted | border-style: dotted; | Dotted line border |
.border-double | Double | border-style: double; | Double line border |
.border-none | None | border-style: none; | No border style |
Interactive Demo
Try the different border styles below. Click on any button to copy the class name to your clipboard. Hover to see descriptions.Examples
Basic Border Styles
Combined with Colors
Common Patterns
Form Inputs
Button Variants
Card Borders
Best Practices
- Solid for standard: Use solid borders for most UI elements
- Dashed for optional: Use dashed borders to indicate optional or less important elements
- None to remove: Use
border-noneto remove borders when needed - Consistent usage: Use the same border style for similar elements

