Core logic for the collapsible widget implemented as a state machine
github.com/chakra-ui/zag
chakra-ui/zag