Home / File/ empty-example.tsx — ui Source File

empty-example.tsx — ui Source File

Architecture documentation for empty-example.tsx, a tsx file in the ui codebase. 6 imports, 0 dependents.

File tsx ComponentRegistry UIPrimitives 6 imports 7 functions

Entity Profile

Dependency Diagram

graph LR
  cd9b19bf_ceb7_05d0_c420_23f4b40e8464["empty-example.tsx"]
  f56be340_a522_c6f7_dec3_5906873d14c8["example"]
  cd9b19bf_ceb7_05d0_c420_23f4b40e8464 --> f56be340_a522_c6f7_dec3_5906873d14c8
  7328fa0a_98b6_fe77_42fd_0d1582b24604["button"]
  cd9b19bf_ceb7_05d0_c420_23f4b40e8464 --> 7328fa0a_98b6_fe77_42fd_0d1582b24604
  55bab6c5_37fc_a32d_630f_04db6fe6cb43["empty"]
  cd9b19bf_ceb7_05d0_c420_23f4b40e8464 --> 55bab6c5_37fc_a32d_630f_04db6fe6cb43
  1fc17a46_59d6_3716_6581_5cf015f0af50["input-group"]
  cd9b19bf_ceb7_05d0_c420_23f4b40e8464 --> 1fc17a46_59d6_3716_6581_5cf015f0af50
  941de019_b70e_6211_9c0b_708c5bd935fe["kbd"]
  cd9b19bf_ceb7_05d0_c420_23f4b40e8464 --> 941de019_b70e_6211_9c0b_708c5bd935fe
  de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"]
  cd9b19bf_ceb7_05d0_c420_23f4b40e8464 --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2
  style cd9b19bf_ceb7_05d0_c420_23f4b40e8464 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {
  Example,
  ExampleWrapper,
} from "@/registry/bases/base/components/example"
import { Button } from "@/registry/bases/base/ui/button"
import {
  Empty,
  EmptyContent,
  EmptyDescription,
  EmptyHeader,
  EmptyMedia,
  EmptyTitle,
} from "@/registry/bases/base/ui/empty"
import {
  InputGroup,
  InputGroupAddon,
  InputGroupInput,
} from "@/registry/bases/base/ui/input-group"
import { Kbd } from "@/registry/bases/base/ui/kbd"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"

export default function EmptyExample() {
  return (
    <ExampleWrapper>
      <EmptyBasic />
      <EmptyWithMutedBackground />
      <EmptyWithBorder />
      <EmptyWithIcon />
      <EmptyWithMutedBackgroundAlt />
      <EmptyInCard />
    </ExampleWrapper>
  )
}

function EmptyBasic() {
  return (
    <Example title="Basic">
      <Empty>
        <EmptyHeader>
          <EmptyTitle>No projects yet</EmptyTitle>
          <EmptyDescription>
            You haven&apos;t created any projects yet. Get started by creating
            your first project.
          </EmptyDescription>
        </EmptyHeader>
        <EmptyContent>
          <div className="flex gap-2">
            <Button render={<a href="#" />} nativeButton={false}>
              Create project
            </Button>
            <Button variant="outline">Import project</Button>
          </div>
          <Button
            variant="link"
            render={<a href="#" />}
            className="text-muted-foreground"
            nativeButton={false}
          >
            Learn more{" "}
            <IconPlaceholder
// ... (204 more lines)

Subdomains

Dependencies

  • button
  • empty
  • example
  • icon-placeholder
  • input-group
  • kbd

Frequently Asked Questions

What does empty-example.tsx do?
empty-example.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, UIPrimitives subdomain.
What functions are defined in empty-example.tsx?
empty-example.tsx defines 7 function(s): EmptyBasic, EmptyExample, EmptyInCard, EmptyWithBorder, EmptyWithIcon, EmptyWithMutedBackground, EmptyWithMutedBackgroundAlt.
What does empty-example.tsx depend on?
empty-example.tsx imports 6 module(s): button, empty, example, icon-placeholder, input-group, kbd.
Where is empty-example.tsx in the architecture?
empty-example.tsx is located at apps/v4/registry/bases/base/examples/empty-example.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: apps/v4/registry/bases/base/examples).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free