decorator

/ˈdɛkərətər/

Definitions

1. noun

A person or thing that decorates, especially an artist or designer who arranges and styles the decorations for a particular occasion.

“The event planner hired a professional decorator to design the wedding reception.”

2. verb

To decorate or furnish something, especially in a stylish or attractive way.

“She decorated the Christmas tree with colorful ornaments and lights.”

3. noun

A JavaScript function that allows you to dynamically add or remove CSS class names from an element, often used in React or Angular applications.

“The developer used a decorator to conditionally render a button based on the user’s role.”

Synonyms

  • artist
  • designer
  • stylist

Antonyms

  • duller
  • unattractive