Skip to main content
Version: Next

EditableTitle

The EditableTitle component from Superset's UI library.

Live Example

Loading component...

Try It

Edit the code below to experiment with the component:

Live Editor
function Demo() {
  return (
    <EditableTitle
      title="My Dashboard"
      canEdit
      showTooltip
      certifiedBy="Data Team"
      certificationDetails="Verified Q1 2024"
      onSaveTitle={(newTitle) => console.log('Saved:', newTitle)}
    />
  );
}
Result
Loading...

Props

PropTypeDefaultDescription
canEditbooleantrueWhether the title can be edited.
editingbooleanfalseWhether the title is currently in edit mode.
emptyTextstring"Empty text"Text to display when title is empty.
noPermitTooltipstring"Not permitted"Tooltip shown when user lacks edit permission.
showTooltipbooleantrueWhether to show tooltip on hover.
titlestring"Title"The title text to display.
defaultTitlestring"Default title"Default title when none is provided.
placeholderstring"Placeholder"Placeholder text when editing.
certifiedBystring""Name of person/team who certified this item.
certificationDetailsstring""Additional certification details or description.
maxWidthnumber100Maximum width of the title in pixels.
autoSizebooleantrueWhether to auto-size based on content.

Import

import { EditableTitle } from '@superset/components';

Improve this page

This documentation is auto-generated from the component's Storybook story. Help improve it by editing the story file.