4.2.0
CoreEmpty

Empty API

Every prop of the 6 parts Empty exports, plus the 1 symbol it exports alongside them, generated from the package manifest.

import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from '@oceanic-hub/brand-system'
Layer
core — shadcn-derived primitives.
Exports
Empty · EmptyContent · EmptyDescription · EmptyHeader · EmptyMedia · EmptyTitlealso: emptyMediaVariantstypes: EmptyMediaProps · EmptyProps
Variants
  • variant: default | icon
Contract
packages/brand-system/src/components/empty.contract.test-d.ts
Demos
3 on the Empty page — rendered live, hydrated
Source
packages/brand-system/src/components/empty.tsx

Generated from manifest/component-manifest.json, so it cannot drift from the source. For what Empty is for, how it composes and what it looks like, see Empty.

Empty

A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.

EmptyContent

A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.

EmptyDescription

A styled <p> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.

EmptyHeader

A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.

EmptyMedia

EmptyMediaProps

Prop

Type

Also accepts everything from React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof emptyMediaVariants>.

EmptyTitle

A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.

emptyMediaVariants

A cva class builder. It returns the class string for a set of variants, so a foreign element can wear this component's surface — a link styled as a button, an AlertDialogAction styled as a destructive one. An advanced move: reach for the component first.

(props?: ({ variant?: "default" | "icon" | null | undefined; } & import("class-variance-authority/types").ClassProp) | undefined): string

Parameters

Prop

Type

Variant axes

Read off the component's own cva config, so this table and the parts that consume it cannot disagree.

Prop

Type

On this page