blob: 0d71ca74557d52c2f7d9a780a8b1a8cf4da637f1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<script>
import FloatingButton from "./Button/FloatingButton.svelte";
export let value;
export let faIcon = false;
export let backgroundColor = "white";
export let color = "black";
export let activeBackgroundColor = "gray";
export let activeColor = "white";
export let active = false;
export let label = null;
</script>
<style>
select {
text-decoration: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-color: transparent;
border: none;
margin: auto;
text-align: center;
}
select:focus {
outline: none;
}
.active {
background-color: var(--active-bg-color);
color: var(--active-color);
}
</style>
<FloatingButton fullWidth=true
{faIcon}
{label}
{backgroundColor}
{color}
{activeBackgroundColor}
{activeColor}
{active} >
<select on:change
bind:value={value}>
<slot></slot>
</select>
</FloatingButton>
|