Componentmedia0.54 KB gzipZero dependencies
MediaObject
Horizontal media plus content row with title, description, meta chips and hover lift.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add media-objectOr install the full npm package:
npm install bigbulluiUsage
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 helperZero 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 />| Prop | Type | Description |
|---|---|---|
| src | string | Configures src. |
| alt | string | Configures alt. (Default: "Media") |
| title | string | Primary heading or title text. |
| description | string | Descriptive helper or subtitle text. |
| meta | React.ReactNode | Configures meta. |
| children | React.ReactNode | Child elements rendered inside the component. |