How to register alignment styles in react-quill

I’m using react-quill npm package and dynamically importing it in nextjs and I’m also using create-next-app boilerplate.
I am able to get the react-quill editor to work but
I am not able to get the image styles/paragraph styles that are set with the align button from the toolbar and re-displaying the contents – image/paragraph.