Core conceptsData
Props
Values supplied to elements and components.
A prop supplies a value to an element or component. A literal holds the value directly: "Hello", 42, true.
The element kind or component interface declares which props it accepts. An expression can compute a prop from current data, such as {{stores.user.name}}. A binding can supply a function for an event prop such as onClick.
Props are inputs; a store holds state that actions can update. Two instances of the same component can receive different props, such as title: "News" and title: "Events".
See component props for declaring inputs and reading them inside a component, and bindings and expressions for supplying dynamic values.