export interface PropTypes {
data?: Record<string, unknown>;
style?: CSSProperties;
keyStyle?: CSSProperties;
valueStyle?: CSSProperties;
className?: string;
layout?: TableViewerLayoutType;
}
<ReactObjectTableViewer
layout={'vertical'}
style={{
border: '1px solid #ccc'
}}
keyStyle={{
color: '#ff0000'
}}
valueStyle={{
color: '#00ff00'
}}
data={data}
/>
| hello | abc | users | dataArray | data | ||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| world | 123 |
|
|
|
| hello | world | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| abc | 123 | ||||||||||||||||||||
| users |
| ||||||||||||||||||||
| dataArray |
| ||||||||||||||||||||
| data |
|