Interface ImageProps

Interface for PropTypes for the Image component.

Hierarchy

  • BaseStyleProp<ImageStyles>
    • ImageProps

Properties

alt: string

The alt text for the image.

caption?: string

The caption for the image.

captionAlign?: "center" | "left" | "right"

The alignment of the caption.

Default

'center'

className?: string

The class name to be applied to the element.

classes?: Partial<Record<ImageStyles, CSSProperties>>

Override or extend the styles applied to the component.

height?: Height<string | number>

The height of the image.

Default

'auto'

src: string

The URL or filepath of the image.

width: undefined | Width<string | number>

The width of the image.

Generated using TypeDoc