1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-04 18:53:20 +00:00
Files
browser/libs/components/src/radio-button/radio-group.component.html
2025-11-03 15:17:07 -05:00

23 lines
597 B
HTML

@if (label()) {
<fieldset>
<legend class="tw-mb-1 tw-block tw-text-sm tw-font-medium tw-text-main">
<ng-content select="bit-label"></ng-content>
@if (required) {
<span class="tw-text-xs tw-font-normal"> ({{ "required" | i18n }})</span>
}
</legend>
<ng-container *ngTemplateOutlet="content"></ng-container>
</fieldset>
}
@if (!label()) {
<ng-container *ngTemplateOutlet="content"></ng-container>
}
<ng-template #content>
<div>
<ng-content></ng-content>
</div>
<ng-content select="bit-hint" ngProjectAs="bit-hint"></ng-content>
</ng-template>