The FolderActionTrigger
component can trigger renaming or deletion of a folder.
This component extends React.ComponentPropsWithoutRef<"button">
, meaning it accepts all native button
element props.
action
Type: "remove" | "rename" | "navigateTo"
Required
Because delete
is a reserved keyword in JavaScript, the delete action is named remove
to avoid conflicts.
asChild
Type: boolean
FolderActionTrigger
must be used inside a Folder
component.