Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22415049
nice-box.jdd.tsx
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
725 B
Referenced Files
None
Subscribers
None
nice-box.jdd.tsx
View Options
import
{
FlatTemplatable
,
TempstreamJSX
}
from
"tempstream"
;
import
{
Component
,
ComponentArguments
,
ExtractStructuredComponentArgumentsValues
,
JDDContext
,
}
from
"@sealcode/jdd"
;
const
component_arguments
=
{
title
:
new
ComponentArguments
.
ShortText
(),
content
:
new
ComponentArguments
.
Markdown
(),
}
as
const
;
export
class
NiceBox
extends
Component
<
typeof
component_arguments
>
{
getArguments
()
{
return
component_arguments
;
}
toHTML
(
{
title
,
content
,
}
:
ExtractStructuredComponentArgumentsValues
<
typeof
component_arguments
>
,
{
render_markdown
}
:
JDDContext
)
:
FlatTemplatable
{
return
(
<
div
class
=
"nice-box"
>
<
h2
>
{
title
}
<
/h2>
<
div
>
{
render_markdown
(
content
)}
<
/div>
<
/div>
);
}
}
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Sat, Nov 28, 01:23 (13 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1229932
Default Alt Text
nice-box.jdd.tsx (725 B)
Attached To
Mode
rPHOTOAPP photo-app-demo
Attached
Detach File
Event Timeline