-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…#41) * add prop autoScroll = true to disable keeping dropdown items in view when going up/down list with arrow keys * add new prop allowUserOptions = false * add new prop loading = false which displays CircleSpinner if true (closes #39)
- Loading branch information
Showing
4 changed files
with
111 additions
and
51 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,30 @@ | ||
<script lang="ts"> | ||
export let color = `cornflowerblue` | ||
export let duration = `1.5s` | ||
export let size = `1em` | ||
</script> | ||
|
||
<div | ||
style="--duration: {duration}" | ||
style:border-color="{color} transparent {color} | ||
{color}" | ||
style:width={size} | ||
style:height={size} | ||
/> | ||
|
||
<style> | ||
div { | ||
display: inline-block; | ||
vertical-align: middle; | ||
margin: 0 3pt; | ||
border-width: calc(1em / 5); | ||
border-style: solid; | ||
border-radius: 50%; | ||
animation: var(--duration) infinite rotate; | ||
} | ||
@keyframes rotate { | ||
100% { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
</style> |
Oops, something went wrong.