Skip to content

Commit b0139d4

Browse files
committed
update
1 parent 05cfd33 commit b0139d4

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • src/routes/reference/jsx-attributes

src/routes/reference/jsx-attributes/prop.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)