GitHub

DaffImageComponent

import { DaffImageComponent } from '@daffodil/design/image'

@Component()
class DaffImageComponent implements OnInit {
  @Input() src: string
  @Input() alt: string
  @Input() width: number
  @Input() height: number

  @Output() load: EventEmitter<void> = new EventEmitter()
}

Inputs

src
string
Default
Description

The URL of the image.

alt
string
Default
Description

The alternate text for the image.

width
number
Default
Description

The width of the image.

height
number
Default
Description

The height of the image.

Outputs

load
EventEmitter<void>
Default
Description

Emits when the image has loaded.