-
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 #87 from selemondev/docs/icon
docs(app): #70 icon
- Loading branch information
Showing
4 changed files
with
76 additions
and
1 deletion.
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,12 @@ | ||
<template> | ||
<div class="grid place-items-center w-full"> | ||
<div class="flex space-x-3"> | ||
<WIcon name="logos:windi-css" /> | ||
<WIcon name="logos:nuxt-icon"/> | ||
<WIcon name="logos:vue" /> | ||
<WIcon name="logos:vueuse" /> | ||
<WIcon name="logos:vuetifyjs" /> | ||
<WIcon name="logos:gridsome-icon" /> | ||
</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,15 @@ | ||
<template> | ||
<div class="grid place-items-center w-full"> | ||
<div class="flex space-x-3"> | ||
<WIcon name="logos:windi-css" size="8xl" /> | ||
<WIcon name="logos:nuxt-icon" size="6xl" /> | ||
<WIcon name="logos:vue" size="4xl" /> | ||
<WIcon name="logos:vueuse" size="2xl" /> | ||
<WIcon name="logos:vuetifyjs" size="xl" /> | ||
<WIcon name="logos:gridsome-icon" size="lg" /> | ||
<WIcon name="devicon:react" size="base" /> | ||
<WIcon name="logos:react-query-icon" size="sm" /> | ||
<WIcon name="logos:svelte-icon" size="xs" /> | ||
</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,47 @@ | ||
--- | ||
title: Icon | ||
lang: en-US | ||
--- | ||
|
||
# Icon | ||
|
||
Icons are used to visually represent objects or concepts and allow users to interact with them by clicking or tapping on them. | ||
|
||
## Basic Usage | ||
|
||
<demo src="../../components/Icon/iconBasic.vue" /> | ||
|
||
## Size | ||
|
||
You can increase the size of the `WIcon` component by passing a size to the `size` prop as shown below: | ||
|
||
<demo src="../../components/Icon/iconSize.vue" /> | ||
|
||
By default, the `WIcon` component's size is `base` | ||
|
||
## Preset | ||
|
||
```js | ||
WIcon: { | ||
base: { | ||
'root': 'block cursor-pointer', | ||
'normal': 'text-base', | ||
'xs': 'text-xs', | ||
'sm': 'text-sm', | ||
'base': 'text-base', | ||
'lg': 'text-lg', | ||
'xl': 'text-xl', | ||
'2xl': 'text-2xl', | ||
'3xl': 'text-3xl', | ||
'4xl': 'text-4xl', | ||
'6xl': 'text-6xl', | ||
'8xl': 'text-8xl', | ||
}, | ||
|
||
variants: { | ||
default: { | ||
root: 'block cursor-pointer', | ||
}, | ||
}, | ||
}, | ||
``` |