Marigold
Getting StartedFoundationsComponentsPatternsReleases
Discover new Tutorials!

Components

Overview

Application

MarigoldProvider
RouterProvider

Layout

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

Actions

Button
updated
Link
updated
LinkButton
beta

Form

Autocomplete
Calendar
Checkbox
updated
ComboBox
DateField
DatePicker
Form
Multiselect
NumberField
Radio
SearchField
Select
Slider
Switch
TextArea
TextField
TimeField

Collection

SelectList
Table
Tag
updated

Navigation

Accordion
updated
Breadcrumbs
beta
Pagination
Tabs

Overlay

ContextualHelp
Dialog
updated
Drawer
beta
Menu
updated
Toast
beta
Tooltip

Content

Badge
Card
updated
Divider
Headline
Icon
List
updated
SectionMessage
SVG
Text
updated
VisuallyHidden
XLoader

Formatters

DateFormat
NumericFormat

Hooks and Utils

cn
cva
extendTheme
parseFormData
useAsyncListData
useListData
useResponsiveValue
useTheme

Split

Component that creates spacing between two flex elements.

The <Split> is an addition to the <Inline> and <Stack> components. Basically it creates an empty div between two elements with the CSS Flexbox grow class. With that it allows you to split the contents of two elements inside a flex context.

Usage

Use the <Split> together with a <Stack> or <Inline>. It can also serve as an alternative to nested stacks or inlines, because it can also provide enough space between the items.

Of course you can also apply the split in any other flexbox context. But we recommend to use it with our given components.

With inline

You can see below how to use the <Split> within the <Inline>. To use the split with the inline correctly you have to set the inline as parent and add the split between the two elements you want to seperate. With that you can provide as much space as given between the two children.

This can be helpful if you need to group related content together but also have other content in the same line.

Preview
Code

With stack

What applies to the inline is also possible with the stack component. You have to set the <Split> as child inside of the <Stack> between two other children to provide maximal space.

Preview
Code

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 Split stories
Component does not have any props.

Related

Building layouts
Learn how to build layouts.
Stack
Align elements vertically.
Inline
Align elements in a horizontally in a row.
Last update: a month ago
Build with 🥵, 🧡 and
v15.3.0