v-bind="$props"

Quick tip # 19, if you are lazy like me.

If you need to bind all props to a inner component like this:

<input :placeholder="placeholder" :required="required" :value="value">

You instead can do this:

<input v-bind="$props">

But only if defined in props.

Show your support

Clapping shows how much you appreciated Marcos Neves’s story.