mirror of
https://github.com/bitwarden/browser
synced 2026-02-10 05:30:01 +00:00
* remove private/protected/lifecycle fields from Storybook docs table * move theme override decorator into util method * implement base drawer component * update bit-layout to be drawer container * create drawer helper components * expose new APIs to DS barrel file * write docs * update docs; add role input * use host directive instead of service * clean up logic a tad * add start slot to story * update docs * Apply suggestions from code review Co-authored-by: Victoria League <vleague@bitwarden.com> * update docs * Update libs/components/src/drawer/drawer.mdx Co-authored-by: Victoria League <vleague@bitwarden.com> * update docs / stories * add non text element to drawer --------- Co-authored-by: Victoria League <vleague@bitwarden.com>
16 lines
491 B
HTML
16 lines
491 B
HTML
<header class="tw-flex tw-justify-between tw-items-center">
|
|
<div class="tw-flex tw-items-center tw-gap-1 tw-overflow-auto">
|
|
<ng-content select="[slot=start]"></ng-content>
|
|
<h2 bitTypography="h3" noMargin class="tw-text-main tw-mb-0 tw-truncate" [attr.title]="title()">
|
|
{{ title() }}
|
|
</h2>
|
|
</div>
|
|
<button
|
|
bitIconButton="bwi-close"
|
|
type="button"
|
|
bitDrawerClose
|
|
[attr.title]="'close' | i18n"
|
|
[attr.aria-label]="'close' | i18n"
|
|
></button>
|
|
</header>
|