-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add sticky prop to Label (#428)
* feat: add sticky prop to Label * Update src/components/Label.vue Co-authored-by: Fabien <bonustrack@users.noreply.github.com> --------- Co-authored-by: Fabien <bonustrack@users.noreply.github.com>
- Loading branch information
1 parent
03a9812
commit ecea212
Showing
5 changed files
with
19 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
<script setup> | ||
defineProps({ label: String }); | ||
defineProps({ | ||
label: String, | ||
sticky: Boolean | ||
}); | ||
</script> | ||
|
||
<template> | ||
<h4 class="eyebrow border-b py-2 px-4 text-skin-text" v-text="label" /> | ||
<h4 | ||
class="eyebrow border-b py-2 px-4 text-skin-text" | ||
:class="{ | ||
'sticky top-[72px] bg-skin-bg': sticky | ||
}" | ||
v-text="label" | ||
/> | ||
</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
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