-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from selemondev/docs/divider
docs(app): #69 divider
- Loading branch information
Showing
4 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<template> | ||
<div class="grid place-items-center w-full"> | ||
<div> | ||
<p class="dark:text-white">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</p> | ||
<WDivider/> | ||
<p class="dark:text-white">Next.js is a popular open-source React framework for building web applications</p> | ||
</div> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<template> | ||
<div class="grid place-items-center w-full"> | ||
<div class="space-x-2 flex items-center"> | ||
<span class="dark:text-white">Nuxt.js</span> | ||
<WDivider vertical /> | ||
<span class="dark:text-white">Next.js</span> | ||
<WDivider vertical /> | ||
<span class="dark:text-white">Vue.js</span> | ||
<WDivider vertical /> | ||
<span class="dark:text-white">React.js</span> | ||
</div> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: Divider | ||
lang: en-US | ||
--- | ||
|
||
# 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: | ||
|
||
<demo src="../../components/Divider/dividerBasic.vue" /> | ||
|
||
## Vertical | ||
|
||
You can use the `vertical` prop to make the `WDivider` component align vertically as shown below: | ||
|
||
<demo src="../../components/Divider/dividerVertical.vue" /> | ||
|
||
## 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', | ||
}, | ||
}, | ||
}, | ||
``` | ||
|