Supreme Court Justice Ruth Bader Ginsburg is stepping out in a new role — a gavel-wielding minifigure in "The Lego Movie 2: The Second Part."

Lego Ginsburg, in her Supreme Court robe naturally, was featured in a new trailer spot released Sunday for the "Lego Movie" sequel coming to screens Feb. 8.

"These movies are so full of surprises. And we were thinking, 'Who’s the last person you would think to see in a Lego film as a minifig?' Ruth Bader Ginsburg!" director Mike Mitchell tells USA TODAY. "And we’re all huge fans. It made us laugh to think of having her enter this world."

"The Lego Movie 2" Instagram page trumpeted the arrival Sunday with a video and caption stating, "The team has arrived."

Ginsburg does fit into the story, which features siblings playing with a Lego universe. The pioneering Supreme Court Justice's brief role is part of the creative younger sister's Lego universe along with the Tin Man and Lego Madame Curie, says Mitchell.

More:Justice Ruth Bader Ginsburg absent from Supreme Court while recovering from surgery, a first in her career

Lego Ginsburg even does a joyful jig dance with Lego Curie during a happy moment in the movi

Producers/screenwriters Chris Miller and Phil Lord, who directed the 2014 "Lego Movie," agreed Ginsburg fits perfectly into the world. The duo said in a statement: “We just were trying to think of people who should be immortalized in Lego and who seem fun at weddings."

Ginsburg was not required for voice work in the cameo. But filmmakers reached out to her office to seek approval for the appearance.

"She said, 'Of course, I'd love to be a Lego figure. That would be cool,' " says Mitchell.

Ginsburg had surgery Dec. 21 to remove two cancerous growths from her left lung. She was released five days later and has been recovering at home.

Her new role has Lego perks. Ginsburg will become an official "Lego Movie 2" figurine.

"So there will be a real Ruth Bader Ginsburg toy that boys and girls can play with. It will even come with a gavel," says Mitchell.

More:Warning: 'Catchy Song' from 'Lego Movie 2' is more addictive than 'Everything is Awesome'