This repository has been archived by the owner on Feb 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
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 #85 from NaturalSelectionLabs/feature/bar-cards
add: bar card component
- Loading branch information
Showing
3 changed files
with
82 additions
and
6 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,29 @@ | ||
<template> | ||
<div | ||
class="box-border rounded-xl px-5 py-1 flex flex-row items-center border-card h-16" | ||
:class="[`bg-${$props.color}-bg`, `border-${$props.color}-border`]" | ||
> | ||
<div class="p-2"> | ||
<slot name="header" /> | ||
</div> | ||
<div class="flex flex-row items-center w-full overflow-y-auto p-2"> | ||
<slot name="content" /> | ||
</div> | ||
<div class="p-2"> | ||
<slot name="footer" /> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { Vue, Options } from 'vue-class-component'; | ||
@Options({ | ||
props: { | ||
color: String, | ||
}, | ||
}) | ||
export default class BarCard extends Vue {} | ||
</script> | ||
|
||
<style></style> |
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