
These are small ceramic capacitors that sell for about $0.025 each in retail boxes at Amazon. Across a couple of kits, they range in rating from 10 picofarads up to 10 microfarads -- a nice even factor of 1 million.
Inside the yellow outer coating, there's a small rectangular chunk of ceramic and metal, organized as alternating layers, with every other metal layer connected to one lead. There's a nice video on their manufacture at https://www.youtube.com/watch?v=5_OSxBLlcKQ , "How We Make Capacitors | Ceramic" by KEMET Electronics. Further information is provided at https://www.youtube.com/watch?v=gFEYuaY35Vo .
Here you're seeing a cross section of the 0.1 µF size. I count 55 layers of metal, with an average spacing around 10 microns on center.

Below is the corner of a larger one, 10 µF. Spacing is about 3 microns on center. In the full thickness, I count about 320 metal layers.

From what we can see above, I can't figure exactly how the scaling works. Capacity should be proportional to the number of layers, multiplied by each layer's area, divided by the thickness of the ceramic insulating layers, multiplied by whatever the dielectric constant is. There's 100X between 0.1 µF and 10 µF, but in the above images I can only see a factor of maybe 30-40X, from counting layers and guestimating the thickness. Oh well, a bit of mystery is a good thing.
The above images all show the canonical cross section, sliced straight down through all the layers.
That slice is convenient for explanation, but it wasn't quite the way the investigation actually played out.
In fact, the very first capacitor that I got a clean face on was a 4.7 µF that looked as follows.

Here's a closer view. Yeah, diagonal layers...?

The above structure is not at all what I was expecting to see, and I puzzled over it for an embarrassingly long time. Finally I figured out the trick. That particular capacitor had gotten assembled with the ceramic block rotated about 90 degrees, so that instead of slicing through the layers I had sliced not quite parallel along them. The strange appearance is due to the angle of the slice, not the structure of the chip.
Nearing the end of the exercise, of course I had to try sectioning the smallest cap I had, only 10 picofarads. In that case I was expecting to see just a couple of plates, with quite a large distance between them. But to my surprise, this is what appeared:

Gentle probing with an ohmeter and sharp pins shows that both of the angled plates on the left side are connected to the left lead, while both angled plates on the right side are connected to the right lead. Why there are two of each, and why/how they are manufactured at that angle, at this time I have no idea.
Notes on technique... The capacitors were glued to glass slides with Krazy Fix Light Cure Super Glue, then progressively ground down with a 1200 grit diamond stone followed by 7000 and 15000 grit sandpaper. I assume that anybody with decent lapidary skills could put a fine polish on these things in no time, but I was working by hand and stopped when they were good enough to see the structure I wanted. The appearance was slightly improved by wiping on a thin layer of "Enco No.1 cutting fluid" just before photographing. I tried glycerin first, but that wouldn't stick at all -- just beaded right up. I have no idea what's in the cutting fluid, except the decades-old label says "a synthetic cutting compound formulated for all ferrous and non-ferrous metals". Photographed with 5X, 10X, and 20X Mitutoyo objectives in the usual setup with Raynox DCR-150, Canon R7, and LED tube diffuser with Jansjö LED ilumination.
I am amused to note that I cannot recall why I decided to look inside these things. As always it took much longer to do the work than to have had the idea.
That choice may have been prompted by some of the illustrations in a very nice book that I recently purchased: "Open Circuits: The Inner Beauty of Electronic Components", https://www.amazon.com/dp/1718502346 . If you're curious about electronics, I heartily recommend it.
--Rik