Divider
COMPONENT

LAYOUT / DIVIDER

Divider

Crisp hairline rule in horizontal or vertical orientation that adapts automatically to light and dark finishes via "theme.divider".

Signature#

SIGNATURE
<VStack spacing={8}>
  <Text>Top</Text>
  <Divider
    color="theme.divider"
    opacity={0.7}
  />
  <Text>Bottom</Text>
</VStack>
Horizontal Divider
Top Bottom

Props#

Inherits StyleProps:

colorstringDefault "theme.divider"
Line color token or hex value.
opacitynumberOptional
Fine-tune opacity (0–1).
verticalbooleanDefault false
Set true to draw a vertical rule between columns inside an HStack (pair with height).

Example: Vertical Two-Column Split#

TSX
<HStack spacing={14} alignment="center">
  <VStack alignment="leading">
    <Text fontSize={11}
      color="theme.secondary">Focus</Text>
    <Text fontSize={22} fontWeight="bold">
      3.5h
    </Text>
  </VStack>

  <Divider vertical={true} height={42} />

  <VStack alignment="leading">
    <Text fontSize={11}
      color="theme.secondary">Tasks</Text>
    <Text fontSize={22} fontWeight="bold">
      9 / 12
    </Text>
  </VStack>
</HStack>
Vertical Divider · 42pt
Focus 3.5h
Tasks 9 / 12