You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The recipes function also exposes an array property `variants` that includes all the variants from your recipe.
122
+
123
+
```ts
124
+
button.variants();
125
+
// -> ['color', 'size']
126
+
```
127
+
128
+
## Recipe class name selection
129
+
130
+
Recipes function exposes internal class names in `classNames` property.
131
+
The property has two predefined props: `base` and `variants`. The `base` prop includes base class name. It is always defined even if you do not have any base styles. The `variants` prop includes class names for each defined variant.
A utility to make use of the recipe’s type interface. This can be useful when typing functions or component props that need to accept recipe values as part of their interface.
import { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';
316
+
export var recipeWithReferences = _7a468({defaultClassName:'recipeClassNames_recipeWithReferences__129pj258',variantClassNames:{first:{true:'recipeClassNames_recipeWithReferences_first_true__129pj259'}},defaultVariants:{},compoundVariants:[]});"
0 commit comments