@sandlada/vue-mdc
Version:

84 lines (83 loc) • 1.44 kB
JavaScript
/**
* @license
* Copyright 2025 Sandlada & Kai Orion
* SPDX-License-Identifier: MIT
*/
import { FormSubmitterType } from "../../internals/controller/form-submitter.js";
import "vue";
import "../../internals/navigation/render-navigation-destination.js";
const ButtonAppearance = {
Filled: "filled",
Outlined: "outlined",
Elevated: "elevated",
FilledTonal: "filled-tonal",
Text: "text"
};
const ButtonSize = {
ExtraSmall: "extra-small",
Small: "small",
Medium: "medium",
Large: "large",
ExtraLarge: "extra-large"
};
const ButtonShape = {
Round: "round",
Suare: "square"
};
const props = {
appearance: {
type: String,
default: ButtonAppearance.Filled
},
size: {
type: String,
default: ButtonSize.Small
},
togglable: {
type: Boolean,
default: false
},
defaultSelected: {
type: Boolean,
default: false
},
shape: {
type: String,
default: ButtonShape.Round
},
disabled: {
type: Boolean,
default: false
},
type: {
type: String,
default: FormSubmitterType.Button
},
href: {
type: String,
default: null
},
target: {
type: String,
default: null
},
form: {
type: String,
default: null
},
name: {
type: String,
default: null
},
value: {
type: String,
default: null
}
};
export {
ButtonAppearance,
ButtonShape,
ButtonSize,
props
};
//# sourceMappingURL=button.definition.js.map