Divider
Visual separator line between items.
Section one
Section two
Contract
Section titled “Contract”Overview
Machine-readable contract from Component Spec.
component: dividerexport: Dividerversion: 1attributes: data-refineui=divider
Anatomy
| Part | data-refineui |
|---|---|
| root | divider |
Variants
| Axis | Values |
|---|---|
| layout | default, content, icon |
Accessibility
| Slot | Element | Role |
|---|---|---|
| divider | div | separator |
Layout
| Property | Value |
|---|---|
| direction | logical |
| rtl | true |
Installation
Section titled “Installation”npm install @refineui/react @refineui/tokensyarn add @refineui/react @refineui/tokenspnpm add @refineui/react @refineui/tokensbun add @refineui/react @refineui/tokensimport { Divider } from "@refineui/react";
<Divider />
<Divider layout="content" align="center"> Or continue with</Divider>
<Divider layout="icon" align="left" />API Reference
Section titled “API Reference”| Prop | Default | Type | Description |
|---|---|---|---|
| layout | "default" | "default" | "content" | "icon" | Divider layout style. |
| align | "center" | "center" | "left" | "right" | Alignment of content/icon (when layout is not default). |
| children | — | ReactNode | Content to display (required when layout is "content"). |