# Dirty States `Unicorn` can provide context to the user that some data has been changed and will be updated. ## Toggling Attributes Elements can include an `unicorn:dirty` attribute with either an `attr` or `class` modifier. ### attr Set the specified attribute on the element that is changed. This example will set the input to be readonly when the model is changed. The attribute will be removed once the name is synced or if the input value is changed back to the original value. :::{code} html :force: true