GitHub

Callout

A callout is a versatile, pre-styled container used to highlight key pieces of content in a visually distinct way.

Components

DaffCalloutComponent

import { DaffCalloutComponent } from '@daffodil/design/callout'

Callout is a versatile, pre-styled container used to highlight key pieces of content in a visually distinct way.

@Component()
class DaffCalloutComponent {
  @Input() textAlignment: DaffTextAlignment
  @Input() compact: boolean = false
  @Input() color: DaffColor
}

Inputs

textAlignment
DaffTextAlignment
Default
Description

The text alignment of the component.

compact
boolean
Defaultfalse
Description

Whether the component is compact.

color
DaffColor
Default
Description

The color of the component.


Directives

DaffCalloutIconDirective

import { DaffCalloutIconDirective } from '@daffodil/design/callout'

Used to display a visual or branding element. Avoid using this for interactive or actionable icons.

@Directive()
class DaffCalloutIconDirective {}

DaffCalloutTaglineDirective

import { DaffCalloutTaglineDirective } from '@daffodil/design/callout'

A short, memorable phrase that complements the title and provides quick context.

@Directive()
class DaffCalloutTaglineDirective {}

DaffCalloutTitleDirective

import { DaffCalloutTitleDirective } from '@daffodil/design/callout'

Applied to a heading tag (<h*>) to define the primary title of the callout.

@Directive()
class DaffCalloutTitleDirective {}

DaffCalloutSubtitleDirective

import { DaffCalloutSubtitleDirective } from '@daffodil/design/callout'

Secondary text that provides additional descriptive information beneath the title.

@Directive()
class DaffCalloutSubtitleDirective {}

DaffCalloutBodyDirective

import { DaffCalloutBodyDirective } from '@daffodil/design/callout'

A flexible wrapper for custom or additional components within the callout. It should only be used once per callout.

@Directive()
class DaffCalloutBodyDirective {}

Modules

DaffCalloutModule

Deprecated

import { DaffCalloutModule } from '@daffodil/design/callout'

@NgModule()
class DaffCalloutModule {}