Bottom Sheet Modal height based on page content height?

Is there a way to set the height of a bottom sheet modal based on the height of modal? I know we can set the breakpoints when presenting the modal, but is there way to explicitly set the height based on the height of the content in the modal?