monday-ui-react-core
Version:
Official monday.com UI resources for application development in React.js
53 lines (35 loc) • 1.36 kB
text/mdx
import { Meta } from "@storybook/blocks";
import {
EDITABLE_HEADING,
HEADING,
TEXT
} from "../../../storybook/components/related-components/component-description-map";
import { TipTextField } from "./EditableText.stories.helpers";
import * as EditableTextStories from "./EditableText.stories";
<Meta of={EditableTextStories} />
- [Overview](
- [Props](
- [Usage](
- [Variants](
- [Related components](
- [Feedback](
Editable text allows users to seamlessly and dynamically edit in-line content. Its default state is a read-view, based on the <StorybookLink page="Text/Text">Text</StorybookLink> component, and it becomes editable after clicking on it.
<Canvas of={EditableTextStories.Overview} />
<PropsTable />
<UsageGuidelines
guidelines={[
"Use when you want to allow the user to edit an existing text",
"This component grows relative to its content, and its maximum width is 100% of its container"
]}
/>
<TipTextField />
Editable text can be used with any of the <StorybookLink page="Text/Text">Text</StorybookLink> component sizes and weights.
<Canvas of={EditableTextStories.Types} />
<RelatedComponents componentsNames={[TEXT, HEADING, EDITABLE_HEADING]} />