There is a shared component called /homescreen/js/components/status.js that implements the status BB behavior. This implementation should be based on this library in order to have a coherent UI in all homescreen app. You can see an example using it in save-bookmark.js file