Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 431 Bytes

pr-95.mdx

File metadata and controls

20 lines (15 loc) · 431 Bytes
releaseUrl releaseDate
May 19, 2022

Patch Changes

Editable 0.1.5

  • Add support for different placeholders in preview and edit mode.

    The placeholder can be a string or an object containing edit and preview.

    const [state, send] = useMachine(
      editable.machine({
        placeholder: { edit: "Enter...", preview: "Add name..." },
      }),
    )