What is the Input height: h-8 or h-9? #9467
Replies: 3 comments
-
|
The CLI installs So your project with |
Beta Was this translation helpful? Give feedback.
-
|
h-9 (36px) is the intended default for the New York preset in the current version of the CLI If this clarification helps you align your project's UI, please consider marking this as the accepted answer so it can help other developers wondering about the New York preset standards! |
Beta Was this translation helpful? Give feedback.
-
AnswerThe height difference is intentional and depends on the style preset:
Why the difference?The New York preset is designed for denser, more compact interfaces (similar to Linear, Vercel dashboard style). The Documentation NoteThe docs show If you need consistency:// Force h-8 if you prefer smaller inputs
<Input className="h-8" />
// Or update your input.tsx component
const Input = React.forwardRef<...>(({ className, ...props }, ref) => (
<input
className={cn(
"h-8 ...", // Change from h-9 to h-8
className
)}
ref={ref}
{...props}
/>
))TL;DR: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @shadcn!
I’m a bit confused about the default height for the Input component.
Could you clarify which height for the New York preset is the default now?
Is h-9 the default for the New York preset and the docs are just not updated yet, or should the docs and presets match?
Documentation:

New project (New York preset):

Beta Was this translation helpful? Give feedback.
All reactions