EditActions

View Source

Helper component that manages switching between initial and editing states of inline forms. It uses an optimisitic save that will render a checkmark after the loading prop has been set to false.

Edit this value

Charlie's favorite candy is Wonka Bar

Props

Themeable

Accepts StackView props.

Use the editActions key in ThemeProvider to customize the default properties of this component.

displayReactReactNode

Renders any custom component or HTML element when not in the edit state.

editReactReactNode

Renders any custom component or HTML element, usually form elments to capture user values.

loadingboolean

Shows a spinner if true and then optimistically shows a checkmark when false again.