@yarcl/react
Preparing search index...
index
useRecipe
Function useRecipe
useRecipe
<
N
extends
never
,
P
extends
object
>
(
name
:
N
,
props
:
P
&
RecipeVariants
<
Extract
<
Record
<
never
,
never
>
[
N
]
,
RecipeDefinition
>
,
>
,
)
:
{
rootProps
:
Omit
<
P
,
keyof
Axes
<
Extract
<
Record
<
never
,
never
>
[
N
]
,
RecipeDefinition
>
>
,
>
&
{
className
:
string
}
;
slots
:
{
[
S
in
string
|
number
|
symbol
]
:
string
}
;
}
Applies a configured recipe to custom markup while retaining extra behavior and native props.
Type Parameters
N
extends
never
P
extends
object
Parameters
name
:
N
props
:
P
&
RecipeVariants
<
Extract
<
Record
<
never
,
never
>
[
N
]
,
RecipeDefinition
>
>
Returns
{
rootProps
:
Omit
<
P
,
keyof
Axes
<
Extract
<
Record
<
never
,
never
>
[
N
]
,
RecipeDefinition
>
>
,
>
&
{
className
:
string
}
;
slots
:
{
[
S
in
string
|
number
|
symbol
]
:
string
}
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@yarcl/react
Loading...
Applies a configured recipe to custom markup while retaining extra behavior and native props.