Open rhythm-3099 opened 3 years ago
Hope this could help : )
import Viewer from 'react-viewer';
const toolbar = [
// Change the style of buttons existed
{
key: 'zoomIn',
actionType: 1,
render: <CustomizedButton />,
},
{
key: 'zoomOut',
actionType: 2,
render: <CustomizedButton />,
},
// Set the style of buttons you created
{
key: 'customButton',
render: <CustomizedButton />,
},
];
<Viewer
customToolbar={() => toolbar}
/>;
Is it possible to somehow change the styling of the buttons. I want to change the styling of only the "test" button.