Skip to content

Commit d8b5395

Browse files
committed
wip
1 parent fa26b2b commit d8b5395

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

blade.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,16 @@ When passing attributes to components, you may also use a "short attribute" synt
907907
<x-profile :user-id="$userId" :name="$name" />
908908
```
909909

910+
If you would like to pass `false` to an attribute, you may prefix the attribute with `!`:
911+
912+
```blade
913+
{{-- Short attribute syntax... --}}
914+
<x-profile !margin />
915+
916+
{{-- Is equivalent to... --}}
917+
<x-profile :margin="false" />
918+
```
919+
910920
<a name="escaping-attribute-rendering"></a>
911921
#### Escaping Attribute Rendering
912922

0 commit comments

Comments
 (0)