# Borders Utilities for controlling the border width, style, and color of an element. **Category:** Utilities **Storybook:** https://doc.ux4g.gov.in/web/?path=/story/ux4g-utilities-borders--introduction ## Variants documented in Storybook - BorderShowcase: https://doc.ux4g.gov.in/web/?path=/story/ux4g-utilities-borders--bordershowcase ## Framework setup ### HTML / CDN ```html ``` ### React ```bash npm install ux4g-web-components ``` ```jsx import 'ux4g-web-components/styles.css'; import 'ux4g-web-components/design-system'; ``` ### Angular Update `angular.json`: ```json { "styles": [ "node_modules/ux4g-web-components/styles/ux4g.css", "src/styles.css" ], "scripts": [ "node_modules/ux4g-web-components/dist/runtime/design-system.js" ] } ``` ## Code examples The snippets below are extracted from the Storybook canvas for Borders. Each example shows the rendered HTML, the equivalent React JSX, and the Angular template markup. ### 1. Border Showcase — Border Base HTML: ```html
A complete reference of all border utility classes, built on a modular engine supporting widths, individual sides, and semantic colors.
Every class from the utility library, categorized for easy access.
|
Border
ux4g-border
|
|
Border Bold
ux4g-border-bold
|
|
Border None
ux4g-border-none
|
|
Border Dashed
ux4g-border-dashed
|
|
Border Dotted
ux4g-border-dotted
|
|
Border Top
ux4g-bt
|
|
Border Right
ux4g-br
|
|
Border Bottom
ux4g-bb
|
|
Border Left
ux4g-bl
|
|
Border Top 0
ux4g-bt-0
|
|
Border Right 0
ux4g-br-0
|
|
Border Bottom 0
ux4g-bb-0
|
|
Border Left 0
ux4g-bl-0
|
|
Border Neutral Subtle
ux4g-border-neutral-subtle
|
|
Border Neutral Strong
ux4g-border-neutral-strong
|
|
Border Primary
ux4g-border-primary
|
|
Border Primary Strong
ux4g-border-primary-strong
|
|
Border Secondary
ux4g-border-secondary
|
|
Border Tertiary
ux4g-border-tertiary
|
|
Border Success
ux4g-border-success
|
|
Border Success Strong
ux4g-border-success-strong
|
|
Border Info
ux4g-border-info
|
|
Border Info Strong
ux4g-border-info-strong
|
|
Border Error
ux4g-border-error
|
|
Border Error Strong
ux4g-border-error-strong
|
|
Border Warning
ux4g-border-warning
|
|
Border Warning Strong
ux4g-border-warning-strong
|
|
Border Neutral Elevated
ux4g-border-neutral-elevated
|
A complete reference of all border utility classes, built on a modular engine supporting widths, individual sides, and semantic colors.
Every class from the utility library, categorized for easy access.
|
Border
ux4g-border
|
|
Border Bold
ux4g-border-bold
|
|
Border None
ux4g-border-none
|
|
Border Dashed
ux4g-border-dashed
|
|
Border Dotted
ux4g-border-dotted
|
|
Border Top
ux4g-bt
|
|
Border Right
ux4g-br
|
|
Border Bottom
ux4g-bb
|
|
Border Left
ux4g-bl
|
|
Border Top 0
ux4g-bt-0
|
|
Border Right 0
ux4g-br-0
|
|
Border Bottom 0
ux4g-bb-0
|
|
Border Left 0
ux4g-bl-0
|
|
Border Neutral Subtle
ux4g-border-neutral-subtle
|
|
Border Neutral Strong
ux4g-border-neutral-strong
|
|
Border Primary
ux4g-border-primary
|
|
Border Primary Strong
ux4g-border-primary-strong
|
|
Border Secondary
ux4g-border-secondary
|
|
Border Tertiary
ux4g-border-tertiary
|
|
Border Success
ux4g-border-success
|
|
Border Success Strong
ux4g-border-success-strong
|
|
Border Info
ux4g-border-info
|
|
Border Info Strong
ux4g-border-info-strong
|
|
Border Error
ux4g-border-error
|
|
Border Error Strong
ux4g-border-error-strong
|
|
Border Warning
ux4g-border-warning
|
|
Border Warning Strong
ux4g-border-warning-strong
|
|
Border Neutral Elevated
ux4g-border-neutral-elevated
|
A complete reference of all border utility classes, built on a modular engine supporting widths, individual sides, and semantic colors.
Every class from the utility library, categorized for easy access.
|
Border
ux4g-border
|
|
Border Bold
ux4g-border-bold
|
|
Border None
ux4g-border-none
|
|
Border Dashed
ux4g-border-dashed
|
|
Border Dotted
ux4g-border-dotted
|
|
Border Top
ux4g-bt
|
|
Border Right
ux4g-br
|
|
Border Bottom
ux4g-bb
|
|
Border Left
ux4g-bl
|
|
Border Top 0
ux4g-bt-0
|
|
Border Right 0
ux4g-br-0
|
|
Border Bottom 0
ux4g-bb-0
|
|
Border Left 0
ux4g-bl-0
|
|
Border Neutral Subtle
ux4g-border-neutral-subtle
|
|
Border Neutral Strong
ux4g-border-neutral-strong
|
|
Border Primary
ux4g-border-primary
|
|
Border Primary Strong
ux4g-border-primary-strong
|
|
Border Secondary
ux4g-border-secondary
|
|
Border Tertiary
ux4g-border-tertiary
|
|
Border Success
ux4g-border-success
|
|
Border Success Strong
ux4g-border-success-strong
|
|
Border Info
ux4g-border-info
|
|
Border Info Strong
ux4g-border-info-strong
|
|
Border Error
ux4g-border-error
|
|
Border Error Strong
ux4g-border-error-strong
|
|
Border Warning
ux4g-border-warning
|
|
Border Warning Strong
ux4g-border-warning-strong
|
|
Border Neutral Elevated
ux4g-border-neutral-elevated
|