add defaults to Button and ActionGroup components

This commit is contained in:
Keviin Åberg Kultalahti 2021-04-21 15:59:08 +02:00
parent 4c750e34b9
commit 79ae6d8b78
2 changed files with 9 additions and 5 deletions

View File

@ -1,9 +1,9 @@
<script>
import "@spectrum-css/actiongroup/dist/index-vars.css"
export let vertical;
export let justified;
export let quiet;
export let compact;
export let vertical = false;
export let justified = false;
export let quiet = false;
export let compact = false;
// Attaches a spectrum-ActionGroup-item class to buttons inside the div
function group(element) {

View File

@ -3,7 +3,11 @@
export let disabled = false
export let size = "M"
export let cta, primary, secondary, warning, overBackground
export let cta = false;
export let primary = false;
export let secondary = false;
export let warning = false
export let overBackground = false;
export let quiet = false
export let icon = undefined
export let active = false