DRY component attribute rendering