# Divider Divider is a thin line that groups content in lists and containers. It helps in improving content organization by separating content visually, making it easier for users to scan and understand information. **Category:** Components **Storybook:** https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-divider--introduction ## Variants documented in Storybook - Divider: https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-divider--divider ## 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 Divider. Each example shows the rendered HTML, the equivalent React JSX, and the Angular template markup. ### 1. Divider — Horizontal Divider HTML: ```html
Divider is a thin line that groups content in lists and containers. It helps in improving content organization by separating content visually, making it easier for users to scan and understand information.
Visual demonstration of horizontal and vertical dividers.
Quickly copy utility classes for Dividers.
|
Horizontal Divider
ux4g-divider-horizontal
|
|
Vertical Divider
ux4g-divider-vertical
|
Divider is a thin line that groups content in lists and containers. It helps in improving content organization by separating content visually, making it easier for users to scan and understand information.
Visual demonstration of horizontal and vertical dividers.
{/* Horizontal Showcase */}Quickly copy utility classes for Dividers.
|
Horizontal Divider
ux4g-divider-horizontal
|
|
Vertical Divider
ux4g-divider-vertical
|
Divider is a thin line that groups content in lists and containers. It helps in improving content organization by separating content visually, making it easier for users to scan and understand information.
Visual demonstration of horizontal and vertical dividers.
Quickly copy utility classes for Dividers.
|
Horizontal Divider
ux4g-divider-horizontal
|
|
Vertical Divider
ux4g-divider-vertical
|