Create a colorbar given the range of levelset and colors

Hello,

I would like to plot only the colorbar, given the range of level sets clims and the range of color to use.

I have something like this in mind:

using Plots
colorbar(clims = (-2, 2), color = cgrad((colormap("RdBu")))