UNPKG

@hashicorp/design-system-components

Version:
31 lines (28 loc) 1.03 kB
import Component from '@glimmer/component'; import { assert } from '@ember/debug'; import HdsTextBody from '../../text/body.js'; import { precompileTemplate } from '@ember/template-compilation'; import { setComponentTemplate } from '@ember/component'; /** * Copyright IBM Corp. 2021, 2025 * SPDX-License-Identifier: MPL-2.0 */ class HdsDropdownListItemDescription extends Component { get text() { const { text } = this.args; assert('@text for "Hds::Dropdown::ListItem::Description" must have a valid value', text !== undefined); return text; } static { setComponentTemplate(precompileTemplate("<HdsTextBody class=\"hds-dropdown-list-item hds-dropdown-list-item--variant-description\" @tag=\"li\" @size=\"100\" @weight=\"regular\" @color=\"faint\" ...attributes>\n {{this.text}}\n</HdsTextBody>", { strictMode: true, scope: () => ({ HdsTextBody }) }), this); } } export { HdsDropdownListItemDescription as default }; //# sourceMappingURL=description.js.map