The rules for this ability are available on DnDBeyond, Wild Shape, I'll save some bits and not reiterate them here. There are also multiple guides out there on how to use wild shape, I'll link to one on D&DBeyond here: Druid 101: Wild Shape Guide.
The challenge I am looking at is how I want to make the ability operate in my games. That's what I will be diving into in this post.