UNPKG

@hashicorp/design-system-components

Version:
33 lines (30 loc) 963 B
import Component from '@glimmer/component'; import { hash } from '@ember/helper'; import HdsButtonSet from '../../button-set/index.js'; import { precompileTemplate } from '@ember/template-compilation'; import { setComponentTemplate } from '@ember/component'; /** * Copyright IBM Corp. 2021, 2025 * SPDX-License-Identifier: MPL-2.0 */ class HdsFormFooter extends Component { get classNames() { const classes = ['hds-form__footer']; // add a class based on the @isFullWidth argument if (this.args.isFullWidth) { classes.push('hds-form-content--is-full-width'); } return classes.join(' '); } static { setComponentTemplate(precompileTemplate("<div class={{this.classNames}} ...attributes>\n {{yield (hash ButtonSet=HdsButtonSet)}}\n</div>", { strictMode: true, scope: () => ({ hash, HdsButtonSet }) }), this); } } export { HdsFormFooter as default }; //# sourceMappingURL=index.js.map