An ophthalmic composition or dosage form can include a therapeutically effective amount of a cross-linking agent and a pharmaceutically acceptable carrier. The composition or dosage form can be used to treat an ophthalmic condition by administering a therapeutically effective amount of the composition to an eye of a subject during a treatment period.