Migrating fly-close
Buttons with a fly-close class, typically with a close icon inside.
A Pluma component's default close behavior, or a PlumaCloseButton where appropriate.
fly-close is commonly used in FlyModal components, usually as a close button
next to the modal's title.
Refer to the FlyModal migration docs for details on this type of migration.
When converting FlyModal to PlumaModal, the ideal scenario is to use PlumaModal's
default behavior, which is to pass in a @title string argument, and an @onClose callback argument.
With this, a PlumaModal will render the correct header, and a close "X" button
in the correct position.
For example:
Source:
Target:
It's also possible to build custom header sections in PlumaModal, which is
described in the FlyModal migration docs.
A fly-tag might be used with a close button, to indicate that it's dismissable or deletable.
PlumaTag supports this by default with an @onDelete argument, as described in the FlyTag migration docs.
Source:
Target:
When no appropriate Pluma component exists (with "close" or "delete" functionality),
a PlumaCloseButton can be used.
Source:
Target: