The ResourceName
component should be used to display the name of any folder or asset. While a folder or asset is being renamed,
this component displays an input field to edit the name.
This component extends React.HTMLAttributes<HTMLElement>
, meaning it accepts all standard HTML element props.
ResourceName
must be used inside either an Asset
or Folder
component.
It is recommended to not exaggerate use of CSS styles on this component.
Remember, that the component returns either a div
or an input
element,
depending on the parent resources isRenaming
state.
You can use ResourceName
in combination with an action trigger to trigger renaming by clicking the resource name.