Skip to main content
Divider
@coinbase/cds-web@8.13.6
Separates content into sections.
Import
import { Divider } from '@coinbase/cds-web/layout/Divider'
SourceView source codeStorybookView StorybookFigmaView Figma
Related components

Horizontal Divider

Loading...
Live Code
<VStack width={500} padding={4} gap={2} width="100%">
  <Box background="background" height={100} background="bgAlternate" padding={2} borderRadius="300">
    Content Above
  </Box>
  <Divider direction="horizontal" />
  <Box background="background" height={100} background="bgAlternate" padding={2} borderRadius="300">
    Content Below
  </Box>
</VStack>

Vertical Divider

Loading...
Live Code
<HStack height={200} padding={4} gap={2} justifyContent="stretch">
  <Box background="background" background="bgAlternate" padding={2} borderRadius="300" flexGrow={1}>
    Content Left
  </Box>
  <Divider direction="veritical" width={1} />
  <Box background="background" background="bgAlternate" padding={2} borderRadius="300" flexGrow={1}>
    Content Right
  </Box>
</HStack>

;

Is this page useful?

Coinbase Design is an open-source, adaptable system of guidelines, components, and tools that aid the best practices of user interface design for crypto products.