@esri/calcite-components
Version:
Web Components for Esri's Calcite Design System.
15 lines (14 loc) • 628 B
JavaScript
/*!
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
* v1.5.0-next.4
*/
import { h } from "@stencil/core";
export const CSS = {
button: "x-button"
};
export function XButton({ disabled, key, label, onClick, ref, scale }) {
return (h("button", { "aria-label": label, class: CSS.button, disabled: disabled, key: key, onClick: onClick, tabIndex: -1, type: "button",
// eslint-disable-next-line react/jsx-sort-props
ref: ref }, h("calcite-icon", { icon: "x", scale: scale === "l" ? "m" : "s" })));
}