Here are some examples of how it can be used:
* "He cracked a grin when he saw the surprised look on her face."
* "The comedian cracked a grin after delivering his punchline."
* "She cracked a grin at the thought of the upcoming vacation."
The idiom emphasizes the suddenness and lightness of the smile, implying that it wasn't planned or forced but rather a natural response to something amusing or enjoyable.