Skip to content

Divider

Argument Required Type Default Description
type No string null Specifies the type of the divider. Options depend on your CSS (e.g., primary, secondary).
position No string default Positions the divider. [start, end].
horizontal No boolean false Makes the divider horizontal if set to true.

Installation

cotton-daisy add divider

Usage

<c-divider/>
<c-divider type="primary"/>
<c-divider type="secondary"/>
<c-divider type="success"/>
<c-divider type="warning"/>
<c-divider type="error"/>
<c-divider position="start">Start</c-divider>
<c-divider>Default</c-divider>
<c-divider position="end">End</c-divider>
<c-divider horizontal/>