UNPKG

@hashicorp/design-system-components

Version:
17 lines (12 loc) 840 B
import TemplateOnlyComponent from '@ember/component/template-only'; 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-form-visibility-toggle\" type=\"button\" aria-label={{@ariaLabel}} ...attributes>\n <Hds::Icon @name={{if @isVisible \"eye\" \"eye-off\"}} @size=\"16\" />\n <span class=\"sr-only\" aria-live=\"polite\">{{@ariaMessageText}}</span>\n</button>"); /** * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ const HdsFormVisibilityToggle = TemplateOnlyComponent(); var index = setComponentTemplate(TEMPLATE, HdsFormVisibilityToggle); export { index as default }; //# sourceMappingURL=index.js.map