Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add tag example to alpha demo app #962

Merged
merged 3 commits into from
Apr 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions apps/alpha-test-app/src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
OnyxSkeleton,
OnyxSwitch,
OnyxTable,
OnyxTag,
OnyxTooltip,
type SelectionOption,
} from "sit-onyx";
Expand Down Expand Up @@ -49,6 +50,7 @@ const COMPONENTS = [
"OnyxSkeleton",
"OnyxSwitch",
"OnyxTable",
"OnyxTag",
"OnyxTooltip",
] as const;

Expand Down Expand Up @@ -314,6 +316,8 @@ const singleSelectState = ref("Apple");
</tbody>
</OnyxTable>

<OnyxTag v-if="show('OnyxTag')" label="Example tag" :icon="emojiHappy2" />

<OnyxTooltip v-if="show('OnyxTooltip')" text="Example tooltip text">
Hover me to show tooltip
</OnyxTooltip>
Expand Down