Skip to content

Commit ff0dcdb

Browse files
committed
update
1 parent a252fae commit ff0dcdb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • src/routes/reference/jsx-attributes

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ See the [TypeScript](/configuration/typescript#forcing-properties-and-custom-att
2828

2929
- **Type:** any truthy or falsy value
3030

31-
Truthy values add the attribute. Falsy values remove it.
31+
Any JavaScript value is coerced by truthiness.
3232

3333
## Behavior
3434

35-
- `bool:name={value}` adds `name` when `value` is truthy.
35+
- `bool:name={value}` writes `name=""` when `value` is truthy.
3636
- `bool:name={value}` removes `name` when `value` is falsy.
37-
- When present, the attribute is written as an empty string attribute.
37+
- SSR output follows the same presence-or-absence behavior.
3838

3939
## Examples
4040

0 commit comments

Comments
 (0)