-
Notifications
You must be signed in to change notification settings - Fork 15
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 #51 from nightswinger/update-emoji-docs
update emoji docs
- Loading branch information
Showing
8 changed files
with
188 additions
and
146 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<template> | ||
<DocSection label="Autosizing" :code="code"> | ||
<template #description> | ||
If no specific size class is given, all emojis are automatically sized according to the current element font-size | ||
</template> | ||
<template #example> | ||
<SuiHeader size="small"> | ||
Within a Header | ||
<SuiEmoji name="relaxed" /> | ||
</SuiHeader> | ||
<SuiButton as="div" size="large"> | ||
Within a Button | ||
<SuiEmoji name="relaxed" /> | ||
</SuiButton> | ||
<SuiLabel size="massive"> | ||
Within a Label | ||
<SuiEmoji name="relaxed" /> | ||
</SuiLabel> | ||
</template> | ||
</DocSection> | ||
</template> | ||
|
||
<script setup> | ||
import DocSection from '@/components/doc/DocSection.vue' | ||
import { SuiEmoji, SuiHeader, SuiButton, SuiLabel } from 'vue-fomantic-ui' | ||
const code = `<template> | ||
<SuiHeader size="small"> | ||
Within a Header | ||
<SuiEmoji name="relaxed" /> | ||
</SuiHeader> | ||
<SuiButton as="div" size="large"> | ||
Within a Button | ||
<SuiEmoji name="relaxed" /> | ||
</SuiButton> | ||
<SuiLabel size="massive"> | ||
Within a Label | ||
<SuiEmoji name="relaxed" /> | ||
</SuiLabel> | ||
<\/template>` | ||
</script> |
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,20 @@ | ||
<template> | ||
<DocSection label="Disabled" :code="code"> | ||
<template #description> | ||
An emoji can show that it is disabled | ||
</template> | ||
<template #example> | ||
<SuiEmoji name="anguished" disabled /> | ||
</template> | ||
</DocSection> | ||
</template> | ||
|
||
<script setup> | ||
import DocSection from '@/components/doc/DocSection.vue' | ||
import { SuiEmoji } from 'vue-fomantic-ui' | ||
const code = `<template> | ||
<SuiEmoji name="anguished" disabled /> | ||
<\/template>` | ||
</script> |
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,20 @@ | ||
<template> | ||
<DocSection label="Link" :code="code"> | ||
<template #description> | ||
An emoji can be formatted as a link | ||
</template> | ||
<template #example> | ||
<SuiEmoji link name="slight_smile" size="medium" /> | ||
</template> | ||
</DocSection> | ||
</template> | ||
|
||
<script setup> | ||
import DocSection from '@/components/doc/DocSection.vue' | ||
import { SuiEmoji } from 'vue-fomantic-ui' | ||
const code = `<template> | ||
<SuiEmoji link name="slight_smile" size="medium" /> | ||
<\/template>` | ||
</script> |
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,24 @@ | ||
<template> | ||
<DocSection label="Loading" :code="code"> | ||
<template #description> | ||
An emoji can be used as a simple loader | ||
</template> | ||
<template #example> | ||
<SuiEmoji name="angel" loading /> | ||
<SuiEmoji name="blush" loading /> | ||
<SuiEmoji name="grin" loading /> | ||
</template> | ||
</DocSection> | ||
</template> | ||
|
||
<script setup> | ||
import DocSection from '@/components/doc/DocSection.vue' | ||
import { SuiEmoji } from 'vue-fomantic-ui' | ||
const code = `<template> | ||
<SuiEmoji name="angel" loading /> | ||
<SuiEmoji name="blush" loading /> | ||
<SuiEmoji name="grin" loading /> | ||
<\/template>` | ||
</script> |
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,26 @@ | ||
<template> | ||
<DocSection label="Size" :code="code"> | ||
<template #description> | ||
An emoji can vary in size | ||
</template> | ||
<template #example> | ||
<SuiEmoji name="relaxed" size="small" /> | ||
<SuiEmoji name="relaxed" size="medium" /> | ||
<SuiEmoji name="relaxed" size="large" /> | ||
<SuiEmoji name="relaxed" size="big" /> | ||
</template> | ||
</DocSection> | ||
</template> | ||
|
||
<script setup> | ||
import DocSection from '@/components/doc/DocSection.vue' | ||
import { SuiEmoji } from 'vue-fomantic-ui' | ||
const code = `<template> | ||
<SuiEmoji name="relaxed" size="small" /> | ||
<SuiEmoji name="relaxed" size="medium" /> | ||
<SuiEmoji name="relaxed" size="large" /> | ||
<SuiEmoji name="relaxed" size="big" /> | ||
<\/template>` | ||
</script> |
This file was deleted.
Oops, something went wrong.
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,53 @@ | ||
<template> | ||
<DocComponent | ||
title="Emoji" | ||
description="An emoji is a glyph used to represent an emotional state" | ||
:component-docs="docs" | ||
/> | ||
</template> | ||
|
||
<script setup> | ||
import DocComponent from '@/components/doc/DocComponent.vue' | ||
// States | ||
import DisabledDoc from '@/components/elements/Emoji/DisabledDoc.vue' | ||
import LoadingDoc from '@/components/elements/Emoji/LoadingDoc.vue' | ||
// Variations | ||
import SizeDoc from '@/components/elements/Emoji/SizeDoc.vue' | ||
import AutosizingDoc from '@/components/elements/Emoji/AutosizingDoc.vue' | ||
import LinkDoc from '@/components/elements/Emoji/LinkDoc.vue' | ||
const docs = [ | ||
{ | ||
id: 'disabled', | ||
label: 'Disabled', | ||
category: 'States', | ||
component: DisabledDoc, | ||
}, | ||
{ | ||
id: 'loading', | ||
label: 'Loading', | ||
category: 'States', | ||
component: LoadingDoc, | ||
}, | ||
{ | ||
id: 'size', | ||
label: 'Size', | ||
category: 'Variations', | ||
component: SizeDoc, | ||
}, | ||
{ | ||
id: 'autosizing', | ||
label: 'Autosizing', | ||
category: 'Variations', | ||
component: AutosizingDoc, | ||
}, | ||
{ | ||
id: 'link', | ||
label: 'Link', | ||
category: 'Variations', | ||
component: LinkDoc, | ||
}, | ||
] | ||
</script> |
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