Use the default button to list the document properties

The following example uses the default button <ShowPropertiesButton /> provided by the Properties plugin.
import { propertiesPlugin } from '@react-pdf-viewer/properties';
// Your render function
const propertiesPluginInstance = propertiesPlugin();
const { ShowPropertiesButton } = propertiesPluginInstance;
return (
<div
className="rpv-core__viewer"
style={{
border: '1px solid rgba(0, 0, 0, 0.3)',
display: 'flex',
flexDirection: 'column',
height: '100%',
}}
>
<div
style={{
alignItems: 'center',
backgroundColor: '#eeeeee',
borderBottom: '1px solid rgba(0, 0, 0, 0.1)',
display: 'flex',
justifyContent: 'center',
padding: '4px',
}}
>
<ShowPropertiesButton />
</div>
<div
style={{
flex: 1,
overflow: 'hidden',
}}
>
<Viewer fileUrl="/assets/pdf-open-parameters.pdf" plugins={[propertiesPluginInstance]} />
</div>
</div>
);

Related example