Root on A string
x2343x
Bdim is the B diminished chord. Its notes are B, D and F. A compact, tense triad. Every interval in this voicing is a chord tone.
x2343x
Numbers show frets from the low E string to the high e string; x means don't play that string.
Bdim is the vii° chord in C major. That makes it a natural fit in songs written in those keys.
Every B, D and F on the first 12 frets. The filled dots are the root, B. Build your own shape from any nearby group.
Other B chords
Other diminished chords