I'm so sorry.
Although I've never lost a child after birth, only before, I wouldn't give anything related to the loss unless I was really tight with the person.
If the gift was for me, I would want to be informed ahead of time and asked if it was okay. Seriously, I might punch someone otherwise. I went through an agitated period.
Good for you for wondering about it.