Workspace Create

A compact create workspace form in React with a required name field, a URL slug input and a submit button wired to an onCreate callback.

src/registry/ui/workspace-create.tsx/r/workspace-create.json

Installation#

bash
npx shadcn@latest add @minidev/workspace-create

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/workspace-create.json

Usage#

tsx
import { WorkspaceCreate } from "@/components/ui/workspace-create"

export function Example() {
  return <WorkspaceCreate />
}

API reference#

WorkspaceCreate props
PropTypeDefault
classNamestring-
onCreate() => void-

Dependencies#

npm

React only
All form components