@hashicorp/design-system-components
Version:
Helios Design System Components
31 lines (28 loc) • 998 B
JavaScript
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 HdsDropdownListItemTitle extends Component {
get text() {
const {
text
} = this.args;
assert('@text for "Hds::Dropdown::ListItem::Title" must have a valid value', text !== undefined);
return text;
}
static {
setComponentTemplate(precompileTemplate("<HdsTextBody class=\"hds-dropdown-list-item hds-dropdown-list-item--variant-title\" @tag=\"li\" @size=\"100\" @weight=\"semibold\" @color=\"strong\" ...attributes>\n {{this.text}}\n</HdsTextBody>", {
strictMode: true,
scope: () => ({
HdsTextBody
})
}), this);
}
}
export { HdsDropdownListItemTitle as default };
//# sourceMappingURL=title.js.map