Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F996337
input.ts
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
800 B
Referenced Files
None
Subscribers
None
input.ts
View Options
export
default
function
input
({
name
,
id
,
label
,
type
,
value
,
placeholder
,
error
,
readonly
,
required
,
}
:
{
name
:
string
;
id
?:
string
;
label
?:
string
;
type
?:
string
;
value
?:
string
;
placeholder
?:
string
;
readonly
?:
boolean
;
error
:
string
;
required
?:
boolean
;
})
{
id
=
id
||
name
;
label
=
label
||
name
;
type
=
type
||
"text"
;
value
=
value
||
""
;
placeholder
=
placeholder
||
type
;
readonly
=
readonly
||
false
;
required
=
required
||
false
;
return
/* HTML */
`<div class="input">
<label for="
${
id
}
">
${
label
}
</label>
<input
id="
${
id
}
"
type="
${
type
}
"
name="
${
name
}
"
value="
${
value
}
"
placeholder="
${
placeholder
}
"
${
readonly
?
"readonly"
:
""
}
${
required
?
"required"
:
""
}
/>
${
error
?
`<div class="input__error">
${
error
}
</div>`
:
""
}
</div>`
;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 24, 14:02 (20 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
557189
Default Alt Text
input.ts (800 B)
Attached To
Mode
rREWRITE Configurable rewriter
Attached
Detach File
Event Timeline
Log In to Comment