Closed setineos closed 1 month ago
Because the parameter is named $defaultVariant
(without the s
).
As said in the error message, the argument is name default_variant
On https://cva.style/docs/getting-started/variants and https://ui.shadcn.com/docs/components/button , defaultVariants
with an "s" is used though :).
Those are not docs about Twig. This is the doc about a JS library (and I don't know why they decided to use a plural name for a setting containing a single variant)
With the following code I have the error below:
Unknown argument "default_variants" for function "html_cva(base, variants, compound_variants, default_variant)".