apx-dsv0.1Local renderer · live
K
Foundations4
  • Getting started
  • Theming
  • Templates
  • Icons
  • Avatar
  • Badge
  • DataGrid
  • Scheduler
  • Stat
  • Table
  • Timeline
  • TreeView
  • Accordion
  • Alert
  • EmptyState
  • Progress
  • Skeleton
  • Spinner
  • SplashScreen
  • Toast
  • ColorPicker
  • FileUpload
  • Form
  • Rating
  • TagsInput
  • Combobox
  • Field
  • Select
  • Toggle
  • Button
  • Calendar
  • Checkbox
  • DatePicker
  • Input
  • NumberInput
  • Radio
  • Slider
  • Switch
  • Textarea
  • AppShell
  • Div
  • Divider
  • Sidebar
  • Stack
  • Typography
  • Image
  • Breadcrumbs
  • Carousel
  • NavigationMenu
  • Pagination
  • Stepper
  • Tabs
  • Toolbar
  • CommandPalette
  • Confirm
  • Drawer
  • HoverCard
  • Menu
  • Modal
  • Popover
  • Tooltip
  • Icon
  • Card
  • PricingCard
60 componentsapx-ds/renderer
Image
Variant↳ other

Media

Image

Content-imagery primitive: lazy by default, layout-stable via

Examples

AspectRatios

Loading preview…
AspectRatios.tsx

Basic

Loading preview…
Basic.tsx

Fallback

Loading preview…
Fallback.tsx

FitContain

Loading preview…
FitContain.tsx

RadiusAndShadow

Loading preview…
RadiusAndShadow.tsx

Props

PropTypeDefaultDescription
alt*string—Accessible description. REQUIRED so authors make an explicit call — pass an empty string (`alt=""`) only for purely decorative imagery, which also removes it from the a11y tree.
src*string—Image source URL.
aspectRatiostring—CSS `aspect-ratio` (e.g. `'4/3'`, `'16/9'`, `'1/1'`). Reserves the box before the image loads, so layout never shifts. Omit to use the intrinsic ratio.
classNamestring——
fallbackReactNode—Rendered in place of the image when the source fails to load. Keeps the same box (radius / shadow / aspect-ratio) so the layout holds.
fitenum'cover'—
fullWidthbooleantrueStretch to the container's width.
loadingenum'lazy'Native loading hint.
radiusenum'none'—
refRef<HTMLImageElement>—Allows getting a ref to the component instance. Once the component unmounts, React will set `ref.current` to `null` (or call the ref with `null` if you passed a callback ref). @see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}
shadowenum'none'—
styleCSSProperties——
sxSx—Theme-aware inline style.