Skip to content
On this page

Divider

A Divider is an element used to separate content or sections in a user interface.

Basic Usage

You can use the WDivider component as shown below:

Nuxt.js is a popular open-source framework for building web applications with Vue.js. It simplifies the process of creating server-rendered Vue applications and provides various features to enhance development.

Next.js is a popular open-source React framework for building web applications.

Vertical

You can use the vertical prop to make the WDivider component align vertically as shown below:

Nuxt.jsNext.jsVue.jsReact.js

Preset

js
WDivider: {
    base: {
      root: 'w-full h-px',
      dividerVertical: 'relative !w-px !h-4 !inline-block',
    },
    variants: {
      default: {
        root: 'bg-gray-400 dark:bg-zinc-600',
      },
    },
},
WDivider: {
    base: {
      root: 'w-full h-px',
      dividerVertical: 'relative !w-px !h-4 !inline-block',
    },
    variants: {
      default: {
        root: 'bg-gray-400 dark:bg-zinc-600',
      },
    },
},

Released under the MIT License.