import { KbqTopBarModule } from '@koobiq/components/top-bar';

KbqTopBar

componentСкопировать ссылку на KbqTopBar

Toolbar row for the top of a page or a panel. It expects two [kbqTopBarContainer] slots — placement="start" and placement="end" — with an optional [kbqTopBarSpacer] between them.

The host carries no landmark role on purpose: the same bar is page chrome in one place and a panel header in another, and a page may hold only one banner. Add role="banner" (or wrap the bar in a <header>) where it is the page header.

@Component({ selector: 'kbq-top-bar' })
class KbqTopBar {
    readonly withShadow = input<boolean>(false);
    readonly ariaLabel = input<string | null>(null, {
        alias: 'aria-label'
    });
}
withShadowinputСкопировать ссылку на withShadowboolean

Applies the kbq-top-bar_with-shadow modifier, which draws the bottom shadow used to signal that page content is scrolled under the bar.

aria-labelinputСкопировать ссылку на aria-labelstring | null

Accessible name of the bar. Set it alongside a landmark role whenever a page renders more than one bar, so assistive technology can tell them apart.

KbqTopBarContainer

directiveСкопировать ссылку на KbqTopBarContainer

Marks a slot inside kbq-top-bar and applies kbq-top-bar-container_start or kbq-top-bar-container_end according to placement.

@Directive({ selector: '[kbqTopBarContainer]' })
class KbqTopBarContainer {
    readonly placement = input.required<'start' | 'end'>();
}
placementinputrequiredСкопировать ссылку на placement'start' | 'end'

Side of the bar the slot occupies. Required; the accepted values are start and end.

KbqTopBarSpacer

directiveСкопировать ссылку на KbqTopBarSpacer

Separator between the two [kbqTopBarContainer] slots of a kbq-top-bar. It reserves --kbq-top-bar-spacer-min-width of guaranteed clearance, so the two sides never collide.

@Directive({ selector: '[kbqTopBarSpacer]' })
class KbqTopBarSpacer {}

KbqTopBarTitle

directiveСкопировать ссылку на KbqTopBarTitle

Marks the page title of kbq-top-bar and sizes it like size="big" breadcrumbs, so the bar keeps its height and the text its baseline when a page swaps the trail for a title.

@Directive({ selector: '[kbqTopBarTitle]' })
class KbqTopBarTitle {}
Предложения по улучшению
Если вы нашли ошибку или хотите доработать статью, создайте запрос на GitHub.