packages/components/eui-banner/eui-banner-cta.component.ts
Content projection component for displaying call-to-action elements within eui-banner. Provides consistent styling and positioning for action buttons or links in banner contexts. Must be used as a child of eui-banner component. Typically contains buttons, links, or other interactive elements that prompt user action.
Example :<eui-banner imageUrl="image.jpg">
<eui-banner-title>Join Us</eui-banner-title>
<eui-banner-description>Be part of something great</eui-banner-description>
<eui-banner-cta>
<button euiButton euiCTAButton>Get Started</button>
</eui-banner-cta>
</eui-banner>| changeDetection | ChangeDetectionStrategy.OnPush |
| selector | eui-banner-cta |
| template | |
| styleUrl | ./eui-banner-cta.scss |
Properties |
HostBindings |
| class |
Type : string
|
Default value : 'eui-banner-cta'
|
|
Binds the class to the component. |
| string |
Type : string
|
Default value : 'eui-banner-cta'
|
Decorators :
@HostBinding('class')
|
|
Binds the class to the component. |