1
0
Fork 0
mirror of synced 2024-09-02 18:51:36 +12:00

add defaults to Button and ActionGroup components

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

View file

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

View file

@ -3,7 +3,11 @@
export let disabled = false export let disabled = false
export let size = "M" 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 quiet = false
export let icon = undefined export let icon = undefined
export let active = false export let active = false