flat attrs to props