Marigold
Marigold

Application

MarigoldProvider
RouterProvider

Layout

Aside
Aspect
Breakout
Center
Columns
Container
Grid
Inline
Inset
Scrollable
Split
Stack
Tiles

Actions

ActionBaralpha
Button
Link
LinkButton
ToggleButtonalpha
ToggleButtonGroupalpha

Form

Autocomplete
Calendar
Checkbox
ComboBox
DateField
DatePicker
FileField
Form
Multiselectdeprecated
NumberField
Radio
SearchField
Select
Slider
Switch
TagFieldbeta
TextArea
TextField
TimeField

Collection

SelectList
Tableupdated
Tag

Navigation

Accordion
Breadcrumbs
Pagination
Sidebarbeta
Tabs
TopNavigationbeta

Overlay

ContextualHelp
Dialog
Drawer
Menu
Toastbeta
Tooltip

Content

Badge
Card
Divider
EmptyStatebeta
Headline
Icon
List
Loader
SectionMessage
SVG
Text

Formatters

DateFormat
NumericFormat

Hooks and Utils

cn
cva
extendTheme
parseFormData
useAsyncListData
useListData
useResponsiveValue
useTheme
VisuallyHidden
Components

Divider

Component to separate content.

A <Divider> is a visual separator between two groups of content, e.g. groups of menu items or sections of a page.

Anatomy

The <Divider> component contains a single element that can be used to create a horizontal or vertical line to separate content.

Anatomy of divider

Appearance

The appearance of a component can be customized using the variant and size props. These props adjust the visual style and dimensions of the component, available values are based on the active theme.

The selected theme does not has any options for"size".

PropertyTypeDescription
variantdefault | boldThe available variants of this component.
size-The available sizes of this component.

Usage

You should use <Divider> to visually separate related content, such as sections in a settings page, items in a list, or actions in a toolbar. They help improve clarity and organization without adding semantic meaning. However, dividers should be used sparingly—only when spacing alone doesn't provide enough separation. Avoid them if they create visual clutter or when semantic elements like headings or sections are more appropriate.

Account Information
Update your name, email address, and password.

Notification Settings
Choose how you want to receive updates and alerts.
import { Divider, Stack, Text } from '@marigold/components';export default () => (  <Stack space={4}>    <Stack space={2}>      <Text weight="bold">Account Information</Text>      <Text>Update your name, email address, and password.</Text>    </Stack>    <Divider />    <Stack space={2}>      <Text weight="bold">Notification Settings</Text>      <Text> Choose how you want to receive updates and alerts.</Text>    </Stack>  </Stack>);

Accessibility

The <Divider> uses the ARIA role separator to indicate that it visually separates and distinguishes sections of content or groups of menu items.

Props

Did you know? You can explore, test, and customize props live in Marigold's storybook. Watch the effects they have in real-time!
View Divider stories

Divider

Prop

Type

Alternative components

  • Stack: If you need to create space between elements, consider using the <Stack> component instead of a divider. It provides spacing without the visual line.
Last update: 3 minutes ago

Card

Component to support the structuring of information.

EmptyState

Inform users when there is no content to display.

On this page

AnatomyAppearanceUsageAccessibilityPropsDividerAlternative components