Skip to Content
Soundor Components
Components

Divider

A thin rule between controls.

Use Divider to separate groups, horizontally or vertically.

import { Divider } from '@soundor/components';
import { Text, View } from '@soundor/react';

export default function Demo() {
  return (
    <View style={{ flexDirection: 'row', alignItems: 'center', gap: 16 }}>
      <Text>Left</Text>
      <Divider orientation="vertical" length={32} />
      <Text>Right</Text>
    </View>
  );
}
divider.tsx, running in the web runtime.Source

Props

Prop

Type

On this page