-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMistSpec.jsx
More file actions
36 lines (33 loc) · 1.05 KB
/
Copy pathMistSpec.jsx
File metadata and controls
36 lines (33 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import React from 'react';
/**
* Key-value spec — lowercase mono whisper label, Instrument Serif value.
* Mist's version of metadata: read like a half-recalled detail.
*
* pronunciation
* /ˈfɛz.koʊ.dɛks/
*/
const MistSpec = ({ label, value, children, inline = false, className = '' }) => {
if (inline) {
return (
<div
className={`flex items-baseline gap-3 font-ibm-plex-mono text-[10.5px] tracking-[0.16em] lowercase text-[#5C6B67] ${className}`}
>
<span className="text-[#8A9894]">{label}</span>
<span className="font-instr-serif text-[15px] normal-case tracking-[0.01em] text-[#3C4845]">
{value || children}
</span>
</div>
);
}
return (
<div className={className}>
<div className="font-ibm-plex-mono text-[10.5px] tracking-[0.16em] lowercase text-[#8A9894]">
{label}
</div>
<div className="font-instr-serif text-[15px] text-[#3C4845] tracking-[0.01em] mt-0.5">
{value || children}
</div>
</div>
);
};
export default MistSpec;