Question about the design #25
-
Hi @mkocansey, first of all, good job!!. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @juanma1331 thanks. I am glad you are picking some knowledge from the Bladewind components. To be honest placing the colours array at the props level was more of a personal preference. I prefer to keep attribute declarations at the props level and actual logic after the props declaration. So in this specific case, I consider However, it is perfectly possible to have declared |
Beta Was this translation helpful? Give feedback.
Hey @juanma1331 thanks. I am glad you are picking some knowledge from the Bladewind components.
To be honest placing the colours array at the props level was more of a personal preference. I prefer to keep attribute declarations at the props level and actual logic after the props declaration. So in this specific case, I consider
$coloring
to be a computed prop attribute that is based on the value of$color
.However, it is perfectly possible to have declared
$coloring
within the@php
block. You'd end up with the same results.