composize
Preparing search index...
@composize/dom
element
Function element
element
<
K
extends
keyof
HTMLElementTagNameMap
>
(
tag
:
K
,
props
?:
Partial
<
PickWritable
<
Omit
<
HTMLElementTagNameMap
[
K
]
,
"style"
>
>
&
{
class
:
string
|
string
[]
;
style
:
Partial
<
CSSStyleDeclaration
>
;
}
,
>
,
)
:
HTMLElementTagNameMap
[
K
]
Type Parameters
K
extends
keyof
HTMLElementTagNameMap
Parameters
tag
:
K
Optional
props
:
Partial
<
PickWritable
<
Omit
<
HTMLElementTagNameMap
[
K
]
,
"style"
>
>
&
{
class
:
string
|
string
[]
;
style
:
Partial
<
CSSStyleDeclaration
>
;
}
,
>
Returns
HTMLElementTagNameMap
[
K
]
element
<
K
extends
keyof
HTMLElementTagNameMap
>
(
tag
:
K
,
content
?:
Content
,
)
:
HTMLElementTagNameMap
[
K
]
Type Parameters
K
extends
keyof
HTMLElementTagNameMap
Parameters
tag
:
K
Optional
content
:
Content
Returns
HTMLElementTagNameMap
[
K
]
element
<
K
extends
keyof
HTMLElementTagNameMap
>
(
tag
:
K
,
composable
?:
()
=>
void
,
)
:
HTMLElementTagNameMap
[
K
]
Type Parameters
K
extends
keyof
HTMLElementTagNameMap
Parameters
tag
:
K
Optional
composable
:
()
=>
void
Returns
HTMLElementTagNameMap
[
K
]
element
<
K
extends
keyof
HTMLElementTagNameMap
>
(
tag
:
K
,
props
?:
Partial
<
PickWritable
<
Omit
<
HTMLElementTagNameMap
[
K
]
,
"style"
>
>
&
{
class
:
string
|
string
[]
;
style
:
Partial
<
CSSStyleDeclaration
>
;
}
,
>
,
content
?:
Content
,
)
:
HTMLElementTagNameMap
[
K
]
Type Parameters
K
extends
keyof
HTMLElementTagNameMap
Parameters
tag
:
K
Optional
props
:
Partial
<
PickWritable
<
Omit
<
HTMLElementTagNameMap
[
K
]
,
"style"
>
>
&
{
class
:
string
|
string
[]
;
style
:
Partial
<
CSSStyleDeclaration
>
;
}
,
>
Optional
content
:
Content
Returns
HTMLElementTagNameMap
[
K
]
element
<
K
extends
keyof
HTMLElementTagNameMap
>
(
tag
:
K
,
props
?:
Partial
<
PickWritable
<
Omit
<
HTMLElementTagNameMap
[
K
]
,
"style"
>
>
&
{
class
:
string
|
string
[]
;
style
:
Partial
<
CSSStyleDeclaration
>
;
}
,
>
,
composable
?:
()
=>
void
,
)
:
HTMLElementTagNameMap
[
K
]
Type Parameters
K
extends
keyof
HTMLElementTagNameMap
Parameters
tag
:
K
Optional
props
:
Partial
<
PickWritable
<
Omit
<
HTMLElementTagNameMap
[
K
]
,
"style"
>
>
&
{
class
:
string
|
string
[]
;
style
:
Partial
<
CSSStyleDeclaration
>
;
}
,
>
Optional
composable
:
()
=>
void
Returns
HTMLElementTagNameMap
[
K
]
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
composize
Loading...