Componentmedia0.54 KB gzipZero dependencies

MediaObject

Horizontal media plus content row with title, description, meta chips and hover lift.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add media-object

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { MediaObject } from "@/components/ui/media-object"; <MediaObject src="/act.jpg" title="Night Circuit" description="Synth pop quartet." />

Source code

media-object.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxmedia-object.tsx53 lines
import * as React from "react";import { cn } from "./lib/utils"; export interface MediaObjectProps extends React.HTMLAttributes<HTMLDivElement> {  src?: string;  alt?: string;  title?: string;  description?: string;  meta?: React.ReactNode;  children?: React.ReactNode;} export function MediaObject({  src,  alt = "Media",  title,  description,  meta,

Props

Interactive Prop Playground

Tweak parsed AST props below to generate ready-to-paste JSX.

tsx3 lines
import { MediaObject } from "@/components/ui/media-object"; <MediaObject />
PropTypeDescription
srcstringConfigures src.
altstringConfigures alt. (Default: "Media")
titlestringPrimary heading or title text.
descriptionstringDescriptive helper or subtitle text.
metaReact.ReactNodeConfigures meta.
childrenReact.ReactNodeChild elements rendered inside the component.