A component for the passenger compartment of a motor vehicle, in particular a motor-vehicle dashboard, or an internal door panel, or an armrest, or the like, comprising: - a rigid supporting body, made of plastic material; - an outer upholstery skin, made of plastic material; and - a padding body made of foamed plastic material, which is set between the rigid body and the outer upholstery skin and is sufficiently flexible as to enable a user to cause a local deformation thereof by exerting a localized pressure on the outer upholstery skin, - wherein said passenger-compartment component is provided with one or more electrical switches that can be activated by exerting a localized pressure on the outer upholstery skin, - said passenger-compartment component being characterized in that: - said rigid body and said outer skin have respective functionalized portions constituted by a polymeric material with carbon-based nanofillers; - said portions of the rigid body and of the outer upholstery skin have respective inner surfaces (2A, 3A) facing said padding body, - each of said inner surfaces (2A,3A) includes one or more piezoresistive areas where said polymeric material with carbon-based nanofillers has been rendered piezoresistive locally by laser irradiation, so as to define said one or more electrical switches, - each of said inner surfaces (2A,3A) includes one or more paths where said polymeric material with carbon-based nanofillers has been rendered electrically conductive locally by laser irradiation so as to define one or more electrical circuits distinct from non-conductive areas to which said piezoresistive areas are electrically connected, - the electrical circuits thus defined on the inner surfaces (2A, 3A) of the rigid body and of the outer skin being electrically connected together. - a rigid supporting body, made of plastic material; - an outer upholstery skin, made of plastic material; and - a padding body made of foamed plastic material, which is set between the rigid body and the outer upholstery skin and is sufficiently flexible as to enable a user to cause a local deformation thereof by exerting a localized pressure on the outer upholstery skin, - wherein said passenger-compartment component is provided with one or more electrical switches that can be activated by exerting a localized pressure on the outer upholstery skin, - said passenger-compartment component being characterized in that: - said rigid body and said outer skin have respective functionalized portions constituted by a polymeric material with carbon-based nanofillers; - said portions of the rigid body and of the outer upholstery skin have respective inner surfaces (2A, 3A) facing said padding body, - each of said inner surfaces (2A,3A) includes one or more piezoresistive areas where said polymeric material with carbon-based nanofillers has been rendered piezoresistive locally by laser irradiation, so as to define said one or more electrical switches, - each of said inner surfaces (2A,3A) includes one or more paths where said polymeric material with carbon-based nanofillers has been rendered electrically conductive locally by laser irradiation so as to define one or more electrical circuits distinct from non-conductive areas to which said piezoresistive areas are electrically connected, - the electrical circuits thus defined on the inner surfaces (2A, 3A) of the rigid body and of the outer skin being electrically connected together.