Define traits for widgets