1import { jsx } from "react/jsx-runtime"; 2const allowedVariants = [ 3 "primary", 4 "secondary", 5 "danger", 6 "outline-primary", 7 "outline-secondary", 8 "outline-danger" 9]; 10const Button = ({ 11 label, 12 variant, 13 size, 14 className, 15 type = "button", 16 ...props 17}) => { 18 const resolvedVariant = variant && allowedVariants.includes(variant) ? variant : "primary"; 19 const classes = ["mds-btn", "btn", `btn-${resolvedVariant}`]; 20 if (size) { 21 classes.push(`btn-${size}`); 22 } 23 if (className) { 24 classes.push(className); 25 } 26 return /* @__PURE__ */ jsx("button", { className: classes.join(" "), type, ...props, children: label }); 27}; 28export { 29 Button 30}; 31//# sourceMappingURL=index.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.