Skip to content

Commit cc62e67

Browse files
authored
Document support for nested lists in class attribute (#3907)
1 parent 4ab1b9e commit cc62e67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/phoenix_component.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,8 @@ defmodule Phoenix.Component do
706706
allows for rendering optimizations.
707707
708708
* `list` (only for the `class` attribute) - each element of the list is processed
709-
as a different class. `nil` and `false` elements are discarded.
709+
as a different class. `nil` and `false` elements are discarded. Nested lists
710+
are supported and flattened.
710711
711712
For multiple dynamic attributes, you can use the same notation but without
712713
assigning the expression to any specific attribute:

0 commit comments

Comments
 (0)