Skip to main content

Divider

This component shows a simple horizontal line to separate different content.

Use cases:

  • anywhere a horizontal rule might be useful for separating content

Example​

In the example below, the two lines of content are separated by a divider.

First block of content
Second block of content

Declaration

<Divider></Divider>

Usage

import { Divider } from '@genesislcap/rapid-design-system/react';

export function MyComponent() {
return (
<Divider></Divider>
);
}

API​

Attributes​

This table shows attribute binding examples for Genesis Component syntax. The HTML closing tag is not included.

NameTypeDescriptionExample
orientation"horizontal" | "vertical"The orientation of the divider. Default: horizontal
<rapid-divider orientation="vertical">
role"separator" | "presentation"Separator - The divider semantically separates content, Presentation - The divider has no semantic value and is for visual presentation only. Default: separator
<rapid-divider orientation="vertical">

Properties​

This component doesn't have any properties.

Slots​

This component doesn't have any slots.

Parts​

This component doesn't have any parts.

Events fired​

This component doesn't fire any events.

Events listened to​

This component doesn't listen to any events.