Skip to main content

NewFolderInput

Inline folder-name input with create/cancel actions

NewFolderInput

Inline folder-name input with create/cancel actions

Source: packages/appkit-ui/src/react/file-browser/new-folder-input.tsx

Props

PropTypeRequiredDefaultDescription
valuestring-Current folder name value
onChange(value: string) => void-Called when folder name changes
onCreate() => void-Called when the user confirms creation
onCancel() => void-Called when the user cancels
creatingboolean-Whether folder creation is in progress
autoFocusbooleantrueAuto-focus the input on mount
labelsPick<FileBrowserLabels, "create" | "folderNamePlaceholder">-Customizable labels

Usage

import { NewFolderInput } from '@databricks/appkit-ui';

<NewFolderInput /* props */ />