Walkthrough
Press X to turn inspect on, hover over an element, and use keyboard shortcuts to navigate.
From the same hover, you can open where it’s defined or where it’s used in your IDE.
Defined
Hover an element, then Click or Enter to open the definition. For a component, that’s its source file. For a tag like <div> or <h1>, that’s the line where it’s written.
components/ui/card.tsx
function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="card-title"
className={cn(
"font-heading text-base leading-normal font-medium group-data-[size=sm]/card:text-sm",
className
)}
{...props}
/>
)
}Used
Hover an element. If a pill shows on the left of the tooltip, it’s a component. Hold and press Click or Enter to open where it’s used.
apps/nextjs/components/section-cards.tsx
<CardTitle className="text-2xl font-semibold tabular-nums @[250px]/card:text-3xl">
$1,950.00
</CardTitle>Press Space for the info popover: component hierarchy, plus a lot of shortcuts to move between elements fast. See Shortcuts.