Add quiet prop to button

This commit is contained in:
Andrew Kingston 2021-07-05 10:19:27 +01:00
parent c9259aee36
commit 0422b3cdf3
1 changed files with 2 additions and 0 deletions

View File

@ -9,10 +9,12 @@
export let onClick export let onClick
export let size = "M" export let size = "M"
export let type = "primary" export let type = "primary"
export let quiet = false
</script> </script>
<button <button
class={`spectrum-Button spectrum-Button--size${size} spectrum-Button--${type}`} class={`spectrum-Button spectrum-Button--size${size} spectrum-Button--${type}`}
class:spectrum-Button--quiet={quiet}
disabled={disabled || false} disabled={disabled || false}
use:styleable={$component.styles} use:styleable={$component.styles}
on:click={onClick} on:click={onClick}