newOS for Developers

Back to Overview

FolderCreate

input893 linesPlayground

A comprehensive folder/space creation modal with tabs for settings, access control, and flow configuration.

Source Path
apps/web/Components/Model/folder/FolderCreate.tsx
Package

@newos/web

Exports

useFolderCreateForm()

Primary hook for folder creation form.

useFolderCreateModal()

Wrapper hook with modal state management.

API Calls

createFolder() — Creates a new folder/space
updateFolder() — Updates existing folder settings
grantWriteAccessMulti() — Grants write access to multiple users

Key Features

Tabbed Interface

General, Access, and Flows tabs

License Types

open, licensed, private options

Contributors Management

Uses UserSelectBox for adding contributors

Gotchas

submissionInProgress Ref — Prevents duplicate submissions
Force Render Tabs — All tabs have forceRender: true

Related Components