Skip to content

Commit 87132a4

Browse files
committed
feat: update examples
1 parent 12b496b commit 87132a4

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

docs/app/(home)/pg/page.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import {
1818
import { Textarea } from "@/components/ui/textarea";
1919
import { tricks } from "@/lib/data";
2020
import KanbanDemo from "@/registry/default/example/kanban-demo";
21-
import SortableDemo from "@/registry/default/example/sortable-demo";
2221
import {
2322
Combobox,
2423
ComboboxAnchor,
@@ -34,7 +33,6 @@ import { ChevronDown } from "lucide-react";
3433
export default function PlaygroundPage() {
3534
return (
3635
<Shell>
37-
<SortableDemo />
3836
<KanbanDemo />
3937
<Textarea
4038
placeholder="Type here..."

docs/content/docs/components/sortable.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ import * as Sortable from "@/components/ui/sortable";
6666

6767
Display a dynamic overlay when an item is being dragged.
6868

69-
<ComponentTabs name="sortable-dynamic-overlay-demo" />
69+
<ComponentTabs name="sortable-dynamic-overlay-demo" scalePreview />
7070

7171
### With Handle
7272

docs/registry/default/example/sortable-demo.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default function SortableDemo() {
5050
<Sortable.Content className="grid auto-rows-fr grid-cols-3 gap-2.5">
5151
{tricks.map((trick) => (
5252
<Sortable.Item key={trick.id} value={trick.id} asChild asHandle>
53-
<div className="flex flex-col gap-1 rounded-md border bg-zinc-100 p-4 text-foreground shadow dark:bg-zinc-900">
53+
<div className="flex size-full flex-col gap-1 rounded-md border bg-zinc-100 p-4 text-foreground shadow dark:bg-zinc-900">
5454
<div className="font-medium text-sm leading-tight sm:text-base">
5555
{trick.title}
5656
</div>

docs/registry/default/example/sortable-dynamic-overlay-demo.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ interface TrickCardProps
7878
function TrickCard({ trick, ...props }: TrickCardProps) {
7979
return (
8080
<Sortable.Item key={trick.id} value={trick.id} asChild {...props}>
81-
<div className="flex flex-col gap-1 rounded-md border bg-zinc-100 p-4 text-foreground shadow dark:bg-zinc-900">
81+
<div className="flex size-full flex-col gap-1 rounded-md border bg-zinc-100 p-4 text-foreground shadow dark:bg-zinc-900">
8282
<div className="font-medium text-sm leading-tight sm:text-base">
8383
{trick.title}
8484
</div>

0 commit comments

Comments
 (0)