-
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 #57 from nightswinger/update-label-docs
update label docs
- Loading branch information
Showing
30 changed files
with
1,279 additions
and
860 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
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,111 @@ | ||
<template> | ||
<DocSection label="Attached" :code="code"> | ||
<template #description> | ||
A label can attach to a content segment | ||
</template> | ||
<template #example> | ||
<SuiGrid :columns="3"> | ||
<SuiGridRow> | ||
<SuiGridColumn> | ||
<SuiSegment padded> | ||
<SuiLabel attached="top">HTML</SuiLabel> | ||
<SuiImage src="/vue-fomantic-ui/images/wireframe/paragraph.png" /> | ||
</SuiSegment> | ||
</SuiGridColumn> | ||
<SuiGridColumn> | ||
<SuiSegment padded> | ||
<SuiLabel attached="bottom">CSS</SuiLabel> | ||
<SuiImage src="/vue-fomantic-ui/images/wireframe/paragraph.png" /> | ||
</SuiSegment> | ||
</SuiGridColumn> | ||
<SuiGridColumn> | ||
<SuiSegment padded> | ||
<SuiLabel attached="top right">Code</SuiLabel> | ||
<SuiImage src="/vue-fomantic-ui/images/wireframe/paragraph.png" /> | ||
</SuiSegment> | ||
</SuiGridColumn> | ||
</SuiGridRow> | ||
|
||
<SuiGridRow> | ||
<SuiGridColumn> | ||
<SuiSegment padded> | ||
<SuiLabel attached="top left">View</SuiLabel> | ||
<SuiImage src="/vue-fomantic-ui/images/wireframe/paragraph.png" /> | ||
</SuiSegment> | ||
</SuiGridColumn> | ||
<SuiGridColumn> | ||
<SuiSegment padded> | ||
<SuiLabel attached="bottom left">User View</SuiLabel> | ||
<SuiImage src="/vue-fomantic-ui/images/wireframe/paragraph.png" /> | ||
</SuiSegment> | ||
</SuiGridColumn> | ||
<SuiGridColumn> | ||
<SuiSegment padded> | ||
<SuiLabel attached="bottom right">Admin View</SuiLabel> | ||
<SuiImage src="/vue-fomantic-ui/images/wireframe/paragraph.png" /> | ||
</SuiSegment> | ||
</SuiGridColumn> | ||
</SuiGridRow> | ||
</SuiGrid> | ||
</template> | ||
</DocSection> | ||
</template> | ||
|
||
<script setup> | ||
import DocSection from '@/components/doc/DocSection.vue' | ||
import { | ||
SuiLabel, | ||
SuiGrid, | ||
SuiGridRow, | ||
SuiGridColumn, | ||
SuiSegment, | ||
SuiImage, | ||
} from 'vue-fomantic-ui' | ||
const code = `<template> | ||
<SuiGrid :columns="3"> | ||
<SuiGridRow> | ||
<SuiGridColumn> | ||
<SuiSegment padded> | ||
<SuiLabel attached="top">HTML</SuiLabel> | ||
<SuiImage src="/vue-fomantic-ui/images/wireframe/paragraph.png" /> | ||
</SuiSegment> | ||
</SuiGridColumn> | ||
<SuiGridColumn> | ||
<SuiSegment padded> | ||
<SuiLabel attached="bottom">CSS</SuiLabel> | ||
<SuiImage src="/vue-fomantic-ui/images/wireframe/paragraph.png" /> | ||
</SuiSegment> | ||
</SuiGridColumn> | ||
<SuiGridColumn> | ||
<SuiSegment padded> | ||
<SuiLabel attached="top right">Code</SuiLabel> | ||
<SuiImage src="/vue-fomantic-ui/images/wireframe/paragraph.png" /> | ||
</SuiSegment> | ||
</SuiGridColumn> | ||
</SuiGridRow> | ||
<SuiGridRow> | ||
<SuiGridColumn> | ||
<SuiSegment padded> | ||
<SuiLabel attached="top left">View</SuiLabel> | ||
<SuiImage src="/vue-fomantic-ui/images/wireframe/paragraph.png" /> | ||
</SuiSegment> | ||
</SuiGridColumn> | ||
<SuiGridColumn> | ||
<SuiSegment padded> | ||
<SuiLabel attached="bottom left">User View</SuiLabel> | ||
<SuiImage src="/vue-fomantic-ui/images/wireframe/paragraph.png" /> | ||
</SuiSegment> | ||
</SuiGridColumn> | ||
<SuiGridColumn> | ||
<SuiSegment padded> | ||
<SuiLabel attached="bottom right">Admin View</SuiLabel> | ||
<SuiImage src="/vue-fomantic-ui/images/wireframe/paragraph.png" /> | ||
</SuiSegment> | ||
</SuiGridColumn> | ||
</SuiGridRow> | ||
</SuiGrid> | ||
</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,34 @@ | ||
<template> | ||
<DocSection label="Basic" :code="code"> | ||
<template #description> | ||
A label can reduce its complexity | ||
</template> | ||
<template #example> | ||
<SuiLabel as="a" basic>Basic</SuiLabel> | ||
<SuiLabel as="a" basic pointing>Pointing</SuiLabel> | ||
<SuiLabel as="a" basic image> | ||
<img src="/images/avatar/small/elliot.jpg" /> | ||
Elliot | ||
</SuiLabel> | ||
<SuiLabel as="a" basic pointing color="red">Red Pointing</SuiLabel> | ||
<SuiLabel as="a" basic color="blue">Blue</SuiLabel> | ||
</template> | ||
</DocSection> | ||
</template> | ||
|
||
<script setup> | ||
import DocSection from '@/components/doc/DocSection.vue' | ||
import { SuiLabel } from 'vue-fomantic-ui' | ||
const code = `<template> | ||
<SuiLabel as="a" basic>Basic</SuiLabel> | ||
<SuiLabel as="a" basic pointing>Pointing</SuiLabel> | ||
<SuiLabel as="a" basic image> | ||
<img src="/images/avatar/small/elliot.jpg" /> | ||
Elliot | ||
</SuiLabel> | ||
<SuiLabel as="a" basic pointing color="red">Red Pointing</SuiLabel> | ||
<SuiLabel as="a" basic color="blue">Blue</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,42 @@ | ||
<template> | ||
<DocSection label="Basic Group" :code="code"> | ||
<template #description> | ||
Labels can share their style together | ||
</template> | ||
<template #example> | ||
<SuiLabelGroup basic> | ||
<SuiLabel> | ||
Fun | ||
<SuiIcon name="close" /> | ||
</SuiLabel> | ||
<SuiLabel> | ||
Happy | ||
<SuiLabelDetail>Smart</SuiLabelDetail> | ||
</SuiLabel> | ||
<SuiLabel>Insane</SuiLabel> | ||
<SuiLabel>Exciting</SuiLabel> | ||
</SuiLabelGroup> | ||
</template> | ||
</DocSection> | ||
</template> | ||
|
||
<script setup> | ||
import DocSection from '@/components/doc/DocSection.vue' | ||
import { SuiLabel, SuiLabelGroup, SuiLabelDetail, SuiIcon } from 'vue-fomantic-ui' | ||
const code = `<template> | ||
<SuiLabelGroup basic> | ||
<SuiLabel> | ||
Fun | ||
<SuiIcon name="close" /> | ||
</SuiLabel> | ||
<SuiLabel> | ||
Happy | ||
<SuiLabelDetail>Smart</SuiLabelDetail> | ||
</SuiLabel> | ||
<SuiLabel>Insane</SuiLabel> | ||
<SuiLabel>Exciting</SuiLabel> | ||
</SuiLabelGroup> | ||
</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,47 @@ | ||
<template> | ||
<DocSection label="Basic Tag" :code="code"> | ||
<template #description> | ||
</template> | ||
<template #example> | ||
<SuiLabel as="a" basic tag primary>Primary</SuiLabel> | ||
<SuiLabel as="a" basic tag secondary>Secondary</SuiLabel> | ||
<SuiLabel as="a" basic tag color="red">Red</SuiLabel> | ||
<SuiLabel as="a" basic tag color="orange">Orange</SuiLabel> | ||
<SuiLabel as="a" basic tag color="yellow">Yellow</SuiLabel> | ||
<SuiLabel as="a" basic tag color="olive">Olive</SuiLabel> | ||
<SuiLabel as="a" basic tag color="green">Green</SuiLabel> | ||
<SuiLabel as="a" basic tag color="teal">Teal</SuiLabel> | ||
<SuiLabel as="a" basic tag color="blue">Blue</SuiLabel> | ||
<SuiLabel as="a" basic tag color="violet">Violet</SuiLabel> | ||
<SuiLabel as="a" basic tag color="purple">Purple</SuiLabel> | ||
<SuiLabel as="a" basic tag color="pink">Pink</SuiLabel> | ||
<SuiLabel as="a" basic tag color="brown">Brown</SuiLabel> | ||
<SuiLabel as="a" basic tag color="grey">Grey</SuiLabel> | ||
<SuiLabel as="a" basic tag color="black">Black</SuiLabel> | ||
</template> | ||
</DocSection> | ||
</template> | ||
|
||
<script setup> | ||
import DocSection from '@/components/doc/DocSection.vue' | ||
import { SuiLabel } from 'vue-fomantic-ui' | ||
const code = `<template> | ||
<SuiLabel as="a" basic tag primary>Primary</SuiLabel> | ||
<SuiLabel as="a" basic tag secondary>Secondary</SuiLabel> | ||
<SuiLabel as="a" basic tag color="red">Red</SuiLabel> | ||
<SuiLabel as="a" basic tag color="orange">Orange</SuiLabel> | ||
<SuiLabel as="a" basic tag color="yellow">Yellow</SuiLabel> | ||
<SuiLabel as="a" basic tag color="olive">Olive</SuiLabel> | ||
<SuiLabel as="a" basic tag color="green">Green</SuiLabel> | ||
<SuiLabel as="a" basic tag color="teal">Teal</SuiLabel> | ||
<SuiLabel as="a" basic tag color="blue">Blue</SuiLabel> | ||
<SuiLabel as="a" basic tag color="violet">Violet</SuiLabel> | ||
<SuiLabel as="a" basic tag color="purple">Purple</SuiLabel> | ||
<SuiLabel as="a" basic tag color="pink">Pink</SuiLabel> | ||
<SuiLabel as="a" basic tag color="brown">Brown</SuiLabel> | ||
<SuiLabel as="a" basic tag color="grey">Grey</SuiLabel> | ||
<SuiLabel as="a" basic tag color="black">Black</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,44 @@ | ||
<template> | ||
<DocSection label="Circular" :code="code"> | ||
<template #description> | ||
A label can be circular | ||
</template> | ||
<template #example> | ||
<SuiLabel circular color="red">2</SuiLabel> | ||
<SuiLabel circular color="orange">2</SuiLabel> | ||
<SuiLabel circular color="yellow">2</SuiLabel> | ||
<SuiLabel circular color="olive">2</SuiLabel> | ||
<SuiLabel circular color="green">2</SuiLabel> | ||
<SuiLabel circular color="teal">2</SuiLabel> | ||
<SuiLabel circular color="blue">2</SuiLabel> | ||
<SuiLabel circular color="violet">2</SuiLabel> | ||
<SuiLabel circular color="purple">2</SuiLabel> | ||
<SuiLabel circular color="pink">2</SuiLabel> | ||
<SuiLabel circular color="brown">2</SuiLabel> | ||
<SuiLabel circular color="grey">2</SuiLabel> | ||
<SuiLabel circular color="black">2</SuiLabel> | ||
</template> | ||
</DocSection> | ||
</template> | ||
|
||
<script setup> | ||
import DocSection from '@/components/doc/DocSection.vue' | ||
import { SuiLabel } from 'vue-fomantic-ui' | ||
const code = `<template> | ||
<SuiLabel circular color="red">2</SuiLabel> | ||
<SuiLabel circular color="orange">2</SuiLabel> | ||
<SuiLabel circular color="yellow">2</SuiLabel> | ||
<SuiLabel circular color="olive">2</SuiLabel> | ||
<SuiLabel circular color="green">2</SuiLabel> | ||
<SuiLabel circular color="teal">2</SuiLabel> | ||
<SuiLabel circular color="blue">2</SuiLabel> | ||
<SuiLabel circular color="violet">2</SuiLabel> | ||
<SuiLabel circular color="purple">2</SuiLabel> | ||
<SuiLabel circular color="pink">2</SuiLabel> | ||
<SuiLabel circular color="brown">2</SuiLabel> | ||
<SuiLabel circular color="grey">2</SuiLabel> | ||
<SuiLabel circular color="black">2</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,34 @@ | ||
<template> | ||
<DocSection label="Circular Group" :code="code"> | ||
<template #description> | ||
Labels can share shapes | ||
</template> | ||
<template #example> | ||
<SuiLabelGroup circular> | ||
<SuiLabel as="a">1</SuiLabel> | ||
<SuiLabel as="a">3</SuiLabel> | ||
<SuiLabel as="a">4</SuiLabel> | ||
<SuiLabel as="a">14</SuiLabel> | ||
<SuiLabel as="a">16</SuiLabel> | ||
<SuiLabel as="a">34</SuiLabel> | ||
</SuiLabelGroup> | ||
</template> | ||
</DocSection> | ||
</template> | ||
|
||
<script setup> | ||
import DocSection from '@/components/doc/DocSection.vue' | ||
import { SuiLabel, SuiLabelGroup } from 'vue-fomantic-ui' | ||
const code = `<template> | ||
<SuiLabelGroup tag> | ||
<SuiLabel as="a">1</SuiLabel> | ||
<SuiLabel as="a">3</SuiLabel> | ||
<SuiLabel as="a">4</SuiLabel> | ||
<SuiLabel as="a">14</SuiLabel> | ||
<SuiLabel as="a">16</SuiLabel> | ||
<SuiLabel as="a">34</SuiLabel> | ||
</SuiLabelGroup> | ||
</template>` | ||
</script> |
Oops, something went wrong.