[cookbook] Setting The Attributes of a Component's Element