Allow range to be defined as object with from/to props