mirror of
https://github.com/fiatjaf/nak.git
synced 2025-12-09 17:18:50 +00:00
initial version with basic event utils.
This commit is contained in:
17
components/item.jsx
Normal file
17
components/item.jsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import React from 'react'
|
||||
|
||||
export default function Item({label, children}) {
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
marginBottom: '9px',
|
||||
whiteSpace: 'pre-wrap',
|
||||
wordWrap: 'break-word',
|
||||
wordBreak: 'break-all'
|
||||
}}
|
||||
>
|
||||
<b>{label}: </b>
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user