Divider

The Divider component is a styled <hr>.


<Divider />

Half width


<Divider width={1 / 2} />

Margin of theme.space[2] (8px)


<Divider m={2} />

Divider will be colored blue from the theme's color palette


<Divider borderColor='blue' />

Props

PropTypeDescription
widthnumber, string, or arraySets the width of the element
borderColorstringSets color of Divider based on the theme's color palette
mnumber, string, or arraySets margin based on the theme.space scale
mtnumber, string, or arraySets margin-top
mrnumber, string, or arraySets margin-right
mbnumber, string, or arraySets margin-bottom
mlnumber, string, or arraySets margin-left
mxnumber, string, or arraySets margin-left and margin-right
mynumber, string, or arraySets margin-top and margin-bottom