UNPKG

@hashicorp/design-system-components

Version:
26 lines (21 loc) 831 B
import Component from '@glimmer/component'; import { precompileTemplate } from '@ember/template-compilation'; import { setComponentTemplate } from '@ember/component'; var TEMPLATE = precompileTemplate("{{!\n Copyright (c) HashiCorp, Inc.\n SPDX-License-Identifier: MPL-2.0\n}}\n<button class=\"hds-dismiss-button\" type=\"button\" aria-label={{this.ariaLabel}} ...attributes>\n <Hds::Icon @name=\"x\" @size=\"16\" />\n</button>"); /** * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ class HdsDismissButton extends Component { /** * @param ariaLabel * @type {string} * @default 'Dismiss' */ get ariaLabel() { return this.args.ariaLabel ?? 'Dismiss'; } } setComponentTemplate(TEMPLATE, HdsDismissButton); export { HdsDismissButton as default }; //# sourceMappingURL=index.js.map