attr to prop