Skip to content

Commit

Permalink
Add example in the demo app
Browse files Browse the repository at this point in the history
  • Loading branch information
MajaZarkova committed Dec 27, 2024
1 parent d564957 commit e73a7c7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions apps/demo-app/src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
DENSITIES,
OnyxAvatar,
OnyxBadge,
OnyxBottomBar,
OnyxButton,
OnyxCheckboxGroup,
OnyxDatePicker,
Expand Down Expand Up @@ -321,6 +322,14 @@ const selectedDate = ref<DateValue>();
<!-- Add new components alphabetically. -->
</div>
</div>
<template #footer>
<OnyxBottomBar>
<template #right>
<OnyxButton label="Button" mode="plain" color="neutral"></OnyxButton>
<OnyxButton label="Button"></OnyxButton>
</template>
</OnyxBottomBar>
</template>
</OnyxPageLayout>
</template>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const { densityClass } = useDensity(props);
.onyx-bottom-bar {
@include layers.component() {
position: fixed;
position: sticky;
bottom: 0;
width: 100%;
margin-inline: var(--onyx-grid-margin-inline);
Expand Down

0 comments on commit e73a7c7

Please sign in to comment.