Remove a prop (Beta)
Remove a prop (Beta)
component.removeProp(propId)
Removes a prop from a component by its ID.
This method removes the prop definition and disconnects any bindings on component instances that reference it. This action mirrors the delete action available in the component props panel in the Webflow Designer and is undoable.
Beta
These methods are in public beta and may change with future releases.
Syntax
Parameters
propId: string — The unique ID of the prop to remove.
Returns
Promise<null>
A Promise that resolves to null when the prop has been removed.
Examples
Remove a prop found by name:
Remove a prop by its known ID:
Create a prop and then remove it: