It's called "Piñata".
pinata
Pinatas
If you are asking this question under "candy", then I presume you mean the container that contains candy. It's called "Piñata".
Children repeatedly hit a clay pot until it breaks during the Mexican celebration known as a "piñata." This festive tradition typically involves a decorated container filled with candies and small toys, which is hung up for children to strike with a stick while blindfolded. Once the pot is broken, the sweets spill out, and the children rush to collect the treats. It's a popular activity at birthday parties and celebrations.
A pinata, a container often made of papier-mache, cloth, or pottery and filled with fruit, toys, or both, is broken on Christmas.
The Mexican ornament that is broken at Christmas and other celebrations is called a piñata.
nothing but broken glass
Obviously, a broken glass recycle container should only contain broken glass. Keeping recycled products separated helps workers in recycling plants.
Pinata.
Part of the modern concept of female beauty, is beautiful fingernails, often elaborately painted or decorated. Broken nails spoil the effect.
It doesn't expand to take the shape of its container, but it flows because the particles can slide past each other, and the bonds are loose, and not completely broken, whereas in gases, the bonds between particles have been broken down, and so they can move apart and fill the container.
Broken glassware should be disposed of in a designated glass waste container in the laboratory. This container is typically labeled and should be in a location easily accessible to lab personnel. It is important to take precautions when handling broken glass to avoid injury.