Default Props
The getDefaultProps
function defines the default props to be applied when a brick instance is added to a page. It should return an object containing these props.
By passing your brick’s props to the types.Brick<T>
generic, you ensure that the object returned by getDefaultProps
is fully typed.