Separator API

This page provides an overview of the Separator component API, detailing its props, slots, and exposed methods/states.

Props

The Separator component accepts the following props:

PropDefaultTypeDescription
verticalfalseboolean or undefinedDetermines whether the separator is vertical.
contentPosition"center""right" or "left" or "center" or "full" or undefinedSpecifies the alignment of the content within the separator.
gradientfalseGradient or [Gradient, GradientLength] or boolean or undefinedApplies a gradient to the separator lines.
depth10 to 7 or undefinedSpecifies the thickness of the separator.
class""StyleClass or undefinedCustom CSS class for the separator container.
classBodyLine""StyleClass or undefinedCustom CSS class for the body of the separator line.
classLine""StyleClass or undefinedCustom CSS class for the main separator line.
classContent""StyleClass or undefinedCustom CSS class for the separator content.
classBodyLineLeft""StyleClass or undefinedCustom CSS class for the left body line.
classLineLeft""StyleClass or undefinedCustom CSS class for the left separator line.
classBodyLineRight""StyleClass or undefinedCustom CSS class for the right body line.
classLineRight""StyleClass or undefinedCustom CSS class for the right separator line.

Gradient Values

  • Gradient: Values between 0 and 100 (e.g., 0, 10, 50, etc.).
  • GradientLength: Values between 0 and 100 to define gradient length.

Slots

The Separator component provides the following slots:

SlotPayloadDescription
defaultVNode[]Default slot for custom content inside the separator.

Expose

The Separator component exposes the following methods and states via ref:

ExposeValueDescription
verticalSeparatorProps["vertical"]Indicates whether the separator is vertical.
contentSeparatorProps["contentPosition"]The current alignment of the separator content.
gradientnumberThe applied gradient value for the separator.
gradientLengthnumberThe length of the gradient applied to the separator.
depthSeparatorProps["depth"]The thickness of the separator.
classBaseSeparatorProps["class"]The CSS class for the separator container.
classBodyLineLeftStyleClassThe CSS class for the left body line.
classLineLeftStyleClassThe CSS class for the left separator line.
classContentStyleClassThe CSS class for the separator content.
classBodyLineRightStyleClassThe CSS class for the right body line.
classLineRightStyleClassThe CSS class for the right separator line.
© 2025 FishtVue by Egoka