File tree Expand file tree Collapse file tree
src/routes/reference/jsx-attributes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,20 +30,20 @@ See the [TypeScript](/configuration/typescript#forcing-properties-and-custom-att
3030
3131- ** Type:** property value
3232
33- Value assigned to the property after the ` prop: ` prefix is removed.
33+ Value assigned directly to the property after the ` prop: ` prefix is removed.
3434
3535## Behavior
3636
37- - ` prop:name={value} ` assigns the value to the ` name ` property.
38- - The ` prop: ` prefix is removed before the assignment happens .
39- - This is useful when an element expects data through properties rather than attributes .
37+ - On the client, ` prop:name={value} ` strips the ` prop: ` prefix and assigns the value directly to the ` name ` property.
38+ - ` prop:* ` does not produce SSR output .
39+ - Use ` prop:* ` when a DOM property must receive the value directly. Solid can still assign some custom-element properties without ` prop:* ` .
4040
4141## Examples
4242
4343### Basic usage
4444
4545``` tsx
46- <div prop :scrollTop = { props . scrollPos } />
46+ <input type = " checkbox " prop :indeterminate = { true } />
4747```
4848
4949## Related
You can’t perform that action at this time.
0 commit comments