UNPKG

@hashicorp/design-system-components

Version:
30 lines (27 loc) 896 B
import Component from '@glimmer/component'; import style from 'ember-style-modifier'; import { precompileTemplate } from '@ember/template-compilation'; import { setComponentTemplate } from '@ember/component'; /** * Copyright IBM Corp. 2021, 2025 * SPDX-License-Identifier: MPL-2.0 */ class HdsFormSectionMultiFieldGroupItem extends Component { get widthStyle() { const widthStyle = {}; if (this.args.width) { widthStyle['--hds-form-section-multi-field-group-item-width'] = this.args.width; } return widthStyle; } static { setComponentTemplate(precompileTemplate("<div class=\"hds-form__section-multi-field-group-item\" {{style this.widthStyle}} ...attributes>{{yield}}</div>", { strictMode: true, scope: () => ({ style }) }), this); } } export { HdsFormSectionMultiFieldGroupItem as default }; //# sourceMappingURL=item.js.map