You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 30, 2025. It is now read-only.
Defining a page action with destructive: true does not changes the visual style of the button.
Edit: Apparently the contract for an action still accept a lot of deprecated button props like destructive, outline and plain (see types) that are lost in the buttonFrom util
Expected behavior
Actions (both primary and secondary) that are destructive: true should show a button with tone="critical" and an appropiate variant or primary value depending on other props.
Actions with plain: true should show a button with variant="plain"
Actual behavior
There is no way to make an action look "destructive" or customize its appearance, since tone and variant are not acceptable props. The only workaround is to pass a react component instead of an action.