ZuzJS UI

ZuzJS

UI

v1.0.71

⌃K

Concepts

Overview

Composition

Layout

Accordion

Alert

Auto Complete

Avatar

Badge

Box

Button

Calendar

Chart

ChatBubble

ChatList

Checkbox

ColorScheme

ContextMenu

CookiesConsent

Cover

Cropper

Crumb

DatePicker

Dialog

Drawer

Fab

Filters

Form

Group

Icon

Image

Input

KeyboardKeys

Label

List

NetworkStatus

Overlay

Pagination

Password

PinInput

ProgressBar

Radio

ScrollView

Slider

Search

SelectTabs

Select

Sheet

Slider

Span

Spinner

Switch

Table

TabView

Text

TextArea

TextWheel

Toast

Tooltip

Treeview

On this page

  • Overview
  • Basic Anatomy

Cover

Documentation for Cover component

Cover

1 <Cover src="https://example.com/image.jpg" alt="Cover image" />

Usage

import { Cover } from "@zuzjs/ui"
<Cover src="https://example.com/image.jpg" alt="Cover image" />

Props

Prop
Type
Required
Description
src
—
—
Source URL
alt
—
—
Alt text
objectFit
—
—
objectFit prop
height
—
—
height prop
ZuzProps
BoxProps
—
Shared base props

Examples

Basic Usage

<Cover src="https://example.com/image.jpg" alt="Cover image" />

Example 2

<Cover src="https://example.com/image.jpg" alt="Cover" objectFit="cover" height="400px" />