A piano is both. Strings vibrate to produce sound (string family), but hammers strike those strings (percussion action). That dual nature is why it's classified as a "struck chordophone" in the Hornbostel-Sachs system.