Rezi
Preparing search index...
core/src
styled
Function styled
styled
<
Kind
extends
"text"
|
"button"
,
Variants
extends
Record
<
string
,
VariantDefinition
<
string
>
>
,
>
(
kind
:
Kind
,
config
:
StyledConfig
<
Variants
>
,
)
:
(
props
:
(
Kind
extends
"button"
?
Readonly
<
{
disabled
?:
boolean
;
id
:
string
;
key
?:
string
;
label
:
string
;
onPress
?:
()
=>
void
;
px
?:
number
;
style
?:
Readonly
<
{
bg
?:
Readonly
<
{
b
:
...
;
g
:
...
;
r
:
...
}
>
;
bold
?:
boolean
;
dim
?:
boolean
;
fg
?:
Readonly
<
{
b
:
...
;
g
:
...
;
r
:
...
}
>
;
inverse
?:
boolean
;
italic
?:
boolean
;
underline
?:
boolean
;
}
,
>
;
}
,
>
:
{
text
:
string
}
)
&
VariantProps
<
Variants
>
,
)
=>
VNode
Type Parameters
Kind
extends
"text"
|
"button"
Variants
extends
Record
<
string
,
VariantDefinition
<
string
>
>
Parameters
kind
:
Kind
config
:
StyledConfig
<
Variants
>
Returns
(
props
:
(
Kind
extends
"button"
?
Readonly
<
{
disabled
?:
boolean
;
id
:
string
;
key
?:
string
;
label
:
string
;
onPress
?:
()
=>
void
;
px
?:
number
;
style
?:
Readonly
<
{
bg
?:
Readonly
<
{
b
:
...
;
g
:
...
;
r
:
...
}
>
;
bold
?:
boolean
;
dim
?:
boolean
;
fg
?:
Readonly
<
{
b
:
...
;
g
:
...
;
r
:
...
}
>
;
inverse
?:
boolean
;
italic
?:
boolean
;
underline
?:
boolean
;
}
,
>
;
}
,
>
:
{
text
:
string
}
)
&
VariantProps
<
Variants
>
,
)
=>
VNode
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Rezi
Loading...