The Share pill opens into its panel, in place.
Every shadcn style · one file
v2.1 · Updated Oct 21pnpm dlx shadcn@latest add https://notchset.dev/r/share-view.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/share-view.jsonFree, no account or key. One command for every shadcn style. With the @notchset registry added, @notchset/<name> works too.
Works with React 18.3 or 19 on Tailwind CSS v4, in any shadcn project. What's tested
pnpm add lucide-react@^1The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { ShareView } from "@/components/ui/notchset/blocks/share-view";
import { Switch } from "@/components/ui/notchset/switch";
const TEAM = [
{ id: "u1", name: "Priya Raman", email: "priya@larkspur.io", hue: 280, sub: "Sales lead" },
{ id: "u2", name: "Omar Haddad", email: "omar@larkspur.io", hue: 160, sub: "Account executive" },
{ id: "u3", name: "Kevin Ito", email: "kevin@larkspur.io", hue: 210, sub: "Finance" },
{ id: "u4", name: "Ana Ruiz", email: "ana@larkspur.io", hue: 20, sub: "CEO" },
];
export default function ShareViewDemo() {
const [fails, setFails] = React.useState(false);
return (
<div className="flex w-full max-w-[440px] flex-col gap-3">
<ShareView
view="Q4 commit, EMEA"
link="https://app.example.com/v/q4-commit-emea"
people={TEAM}
defaultTo={[TEAM[0]!, TEAM[2]!]}
access={[
{ value: "team", label: "Team" },
{ value: "invited", label: "Only invited" },
]}
/* resolve false and nobody is told: the panel keeps the people and offers Retry */
onSend={() => new Promise<boolean>((r) => setTimeout(() => r(!fails), 600))}
/>
<label className="flex items-center gap-2 self-end text-[length:var(--ns-text-small)] text-[var(--ns-ink-3)]">
Sending fails
<Switch checked={fails} onCheckedChange={setFails} aria-label="Make sending fail" />
</label>
</div>
);
}This example also uses Switch. This command installs them with it, so the example pastes as it is:
pnpm dlx shadcn@latest add https://notchset.dev/r/share-view.json https://notchset.dev/r/switch.jsoncomponents/ui/notchset/blocks/share-view.tsx
view–
stringthe view's name, said in the panel's title
link–
stringRequired.
people–
Recipient[]Required.
access–
{ value: string; label: string }[]Required.
defaultTo[]
Recipient[]people already chosen when it opens
onSend–
(to: Recipient[], access: string) => Promise<boolean | void> | boolean | voidthe host's send; reject (or resolve false) to refuse it
align"center"
"center" | "end"where the pill sits and the panel grows from: the middle, or the end of a toolbar
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v2.1.0 · 2026-10-21
A pending send never lands on the view that replaced it.
v2.0.0 · 2026-10-13
Released with the Notchset system.
A marketing piece: made for marketing pages and launch posts, never inside a template.