Prime React Menu

UI Components for React
Post Reply
abhijeetsinha9
Posts: 1
Joined: 28 Mar 2021, 18:03

01 Apr 2021, 19:40

How can i apply color: 'red' to label: 'Earth' . and color : 'green' to label: 'Moon'

items = [
{
label: 'Earth'
},
{
label: 'Moon'
}
}
];
menu: any = React.createRef();

<Menu model={this.items} popup ref={this.menu} />

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests