shadcn
2f6c3e74bb
fix(v4): use tailwind var
2025-03-05 16:58:06 +04:00
Valentin Gavran
a106fc5412
fix(dropdown-menu): make dropdown scrollable if height is limited ( #6679 )
...
* fix(dropdown-menu): make dropdown content scrollable if height is limited
Dropdown menu content now becomes scrollable when the browser window height is too small to display the full menu. This improves usability on smaller screens.
Radix also supports the same behavior with other components. I will also submit a PR for the other components separately.
* chore: build registry
---------
Co-authored-by: shadcn <m@shadcn.com >
2025-03-05 16:51:46 +04:00
shadcn
19665adeed
feat(shadcn): add --base-color flag ( #6864 )
2025-03-05 16:14:03 +04:00
omar2205
fc0e8c0c52
use type import in react-hook-form ( #4183 )
...
* use type import in react-hook-form
* fix(form): fix type and rebuild registry
---------
Co-authored-by: shadcn <m@shadcn.com >
2025-03-05 15:34:13 +04:00
shadcn
c16c58d0f9
feat(shadcn): add --template flag ( #6863 )
...
* feat(shadcn): add --template flag
* chore: changeset
* fix: type
2025-03-05 15:13:34 +04:00
Kaikai
a3fe5074c1
feat(monorepo): use tailwindcss v4 in monorepo example ( #6724 )
...
* feat(monorepo): use tailwindcss v4 in monorepo example
* feat(shadcn): add monorepo tailwind detection
* feat: update default monorepo template
* fix: minor fixes
* chore(shadcn): changeset
* docs(www): update monorepo docs
* docs: updates
---------
Co-authored-by: shadcn <m@shadcn.com >
2025-03-05 12:07:50 +04:00
shadcn
3baef994d7
feat(v4): add combobox with checkbox example ( #6862 )
...
* feat(v4): add combobox with checkbox example
* fix: remove unused checkbox
* fix: rounded
2025-03-05 11:21:07 +04:00
shadcn
a7b3dbf121
feat(www): site updates ( #6854 )
...
* feat(www): site updates
* fix: lint
* docs: add tailwind notice
2025-03-04 16:51:58 +04:00
shadcn
26dc03b545
fix: chart and input-otp lint errors ( #6853 )
2025-03-04 14:00:25 +04:00
shadcn
be3c1a9a98
chore: minor fixes for registry blocks ( #6850 )
2025-03-04 13:26:40 +04:00
shadcn
418b2d9e14
fix(v4): misc select and tabs fixes ( #6836 )
2025-03-03 11:56:29 +04:00
JEM
7eb77fb3b9
fix(navigation-menu): 6825 - Update open state styles and remove unused classes ( #6827 )
...
* fix(navigation-menu): 6825 - Update open state styles and remove unused classes
Adjusts navigation menu trigger open styles to apply opacity /50 only when not hover/focused.
Removes unused data-[active] and data-[active=true] classes.
Fixes #6825
* Adds data-[active=true] back to NavigationMenuLink component.
Includes text color changes for open/active states to improve UI consistency.
* v3 registry
* v4 registry
2025-03-03 11:56:15 +04:00
Bryan Lee
f759a25354
docs(www): update Tailwind v4 migration guide with CSS and React changes ( #6813 )
...
Co-authored-by: shadcn <m@shadcn.com >
2025-03-03 11:53:09 +04:00
JEM
0b288883d2
fix(sidebar, sidebar-16): 6651 - Resolve unnecessary vertical scroll ( #6782 )
...
* fix(sidebar, sidebar-16): 6651 - Resolve unnecessary vertical scroll
Includes "label" in registry dependencies for sidebar-16 components.
Adjusts sidebar and sidebar inset dimensions to eliminate unwanted scroll behavior.
Fixes #6651
* chore: build registry
* Add label component to registry and adjust sidebar styles
Adds 'label' component to the registry.
Corrects sidebar styles and layout for better responsiveness.
* fix(sidebar-09): Add missing Label component dependency
Ensures the Label component is included in the registry dependencies for sidebar-09 to prevent missing component errors.
---------
Co-authored-by: shadcn <m@shadcn.com >
2025-03-02 15:33:09 +04:00
Christian Ivicevic
cf4ccb34e2
docs(www): mention to add suppressHydrationWarning in the dark mode docs for next ( #5879 )
...
Users have repeatedly run into hydration errors because they don't read the next-themes readme and don't pay attention to the shadcn/ui docs and miss that the `suppressHydrationWarning` prop must be added.
This commit mentions this explicitly and highlights the line in the snippet (as well as fixing the previously wrong highlighting).
2025-03-02 11:27:48 +00:00
shadcn
dc80a326c2
ci: fix stale bot
2025-03-02 15:24:05 +04:00
Lloyd Richards
92e5c7ab2c
ci: fix up stale issue handler ( #6457 )
...
Co-authored-by: shadcn <m@shadcn.com >
2025-03-02 14:59:26 +04:00
shadcn
d44971b6c2
feat(v4): add products-01 block
2025-02-28 23:14:59 +04:00
shadcn
8539dd6eec
fix(shadcn): do not add outline-ring for v3 ( #6814 )
...
* fix(shadcn): do not add ring if tailwind v3
* chore: changeset
* test(shadcn): update snapshots
2025-02-28 21:23:08 +04:00
shadcn
bc7df68620
feat(shadcn): install routes for next-pages, laravel and react-router ( #6811 )
...
* feat(shadcn): install routes for next-pages, laravel and react-router
* chore: changeset
2025-02-28 18:06:06 +04:00
迷渡
1832f258bd
fix(shadcn): Remove duplicate spaces ( #6696 )
2025-02-28 17:19:28 +04:00
shadcn
e2730f7276
docs(www): update docs for cli, components.json and theming
2025-02-28 16:38:39 +04:00
shadcn
22ba26152a
docs(www): update tanstack docs
2025-02-28 16:21:29 +04:00
shadcn
76d6a59f9f
docs(www): update all framework docs ( #6809 )
...
* docs(www): update all framework docs
* docs(www): update Tailwind v4 docs
2025-02-28 15:53:04 +04:00
shadcn
3a2a87386f
fix(v4): badge overflow
2025-02-28 15:44:04 +04:00
shadcn
1822d95883
docs(www): update docs for vite ( #6807 )
2025-02-28 14:30:10 +04:00
shadcn
f90f5148eb
fix(v4): responsive for the demo ( #6803 )
...
* fix(v4): responsive
* fix: type
* fix(v4): remove the login link
2025-02-28 13:31:06 +04:00
shadcn
99b0a5ac90
fix(v4): remove login and sandbox links
2025-02-28 13:29:16 +04:00
shadcn
984cb2a1ea
feat(v4): update default ring colors
2025-02-28 13:28:17 +04:00
shadcn
fed2bac1d9
Merge branch 'main' of github.com:shadcn-ui/ui
2025-02-27 15:51:17 +04:00
shadcn
1ebfcd7cd9
feat(registry): update sidebars
2025-02-27 15:51:05 +04:00
Keit Oliveira
535a7d9220
fix(form): avoid undefined message error as string ( #6729 )
...
Add validation to prevent converting `undefined` error messages to string in the `FormMessage` component.
This fix addresses issues that occur in complex validation structures, such as validating entire objects.
```ts
const formSchema = z.object({
location: z.object({
city: z.string().nonempty(),
state: z.string().nonempty(),
country: z.string().nonempty(),
}).superRefine((data, ctx) => {
...
});
```
```tsx
<FormField
control={form.control}
name="location"
render={() => (
<FormItem>
<FormField
control={form.control}
name="location.city"
render={({ field }) => (
<FormItem>
<FormLabel>City</FormLabel>
<FormControl>
<Input placeholder="Enter city" {...field} />
</FormControl>
</FormItem>
)}
/>
<FormField
control={form.control}
name="location.state"
render={({ field }) => (
<FormItem>
<FormLabel>State</FormLabel>
<FormControl>
<Input placeholder="Enter state" {...field} />
</FormControl>
</FormItem>
)}
/>
<FormField
control={form.control}
name="location.country"
render={({ field }) => (
<FormItem>
<FormLabel>Country</FormLabel>
<FormControl>
<Input placeholder="Enter country" {...field} />
</FormControl>
</FormItem>
)}
/>
<FormMessage />
</FormItem>
)}
/>
```
2025-02-26 20:35:01 +00:00
Cyrus Zei
e7f8cd4566
chore(www): update the user info to use example instead ( #6766 )
2025-02-26 20:47:23 +04:00
shadcn
8506977f83
chore: deprecate shadcn-ui ( #6780 )
...
* chore: deprecate shadcn-ui
* deps(shadcn-ui): remove unused dependencies
* fix: tests
* deps: bump version
2025-02-26 20:34:51 +04:00
shadcn
575c0214da
feat(v4): minor component updates
2025-02-26 17:28:49 +04:00
shadcn
a1ab28bf58
Merge branch 'main' of github.com:shadcn-ui/ui
2025-02-25 16:00:45 +04:00
shadcn
190ae2dcd8
docs(www): link get started to installation
2025-02-25 16:00:19 +04:00
Fin Chen
d5920cc3c1
fix(www): extra semicolon of --radius ( #6737 ) ( #6762 )
2025-02-25 15:51:38 +04:00
shadcn
89652889db
docs(www): update tanstack start docs ( #6765 )
2025-02-25 15:51:19 +04:00
Pavi
57d15bb2d5
fix(docs): update monorepo docs ( #6647 )
...
This pull request includes a small change to the `templates/monorepo-next/README.md` file. The change corrects the import path for the `Button` component to reflect the correct directory structure.
* [`templates/monorepo-next/README.md`](diffhunk://#diff-4f9dc7da681b34ccf99bccdcb804625f61e47afc70a483548b3ae093b564e072L30-R30): Updated the import path for the `Button` component to `@workspace/ui/components/button`.
2025-02-23 07:35:26 +00:00
shadcn
779517a1d4
fix(shadcn): check for empty css vars ( #6733 )
...
* fix(shadcn): check for empty css vars
* chore: changeset
2025-02-22 13:44:13 +04:00
Pasquale Vitiello
b567f7a6c1
fix: class name typo ( #6633 )
...
Co-authored-by: shadcn <m@shadcn.com >
2025-02-22 13:43:57 +04:00
shadcn
839afa714f
feat(shadcn): cache registry calls ( #6732 )
...
* fix(shadcn): cache registry calls
* chore: changeset
2025-02-22 13:21:16 +04:00
Aaron
32f0bc0de9
fix(select): make select placeholder text show as faded ( #6055 )
...
Use the [data-placeholder] data attribute supplied by radix-ui instead of the `placeholder` state selector, which doesn't do anything for buttons (afaict, which radix-ui renders `SelectTrigger` into).
Reference: https://www.radix-ui.com/primitives/docs/components/select#api-reference
Before:

After:

2025-02-22 08:17:56 +00:00
shadcn
7d2499c803
fix(v4): dark mode
2025-02-21 21:08:07 +04:00
shadcn
84b88440c3
fix(v4): login spacing
2025-02-21 21:05:52 +04:00
shadcn
a5122f9029
fix(shadcn): do not override existing vars ( #6721 )
...
* fix(shadcn): do not override existing vars
* test(shadcn): update snapshots
* chore: changeset
2025-02-21 20:58:02 +04:00
shadcn
3b90317e3c
feat(v4): update cards
2025-02-21 20:44:09 +04:00
shadcn
9d7c7b8978
fix(shadcn): fallback style ( #6720 )
2025-02-21 20:19:59 +04:00
shadcn
957df8997c
fix: misc fixes for v4 components ( #6719 )
...
* feat(v4): login tests
* feat(v4): fix button and toggle
2025-02-21 20:07:48 +04:00