The barn door is an out of the box item, please see photos for details. The hardware is in a box and is included.
See details/compare price: https://www.homedepot.com/p/CALHOME-42-in-x84-in-Z-Bar-DIY-1-Panel-Unfinished-Natural-Wood-Sliding-Barn-Door-w-8-ft-Dark-Coffee-Sliding-Door-Hardware-Kit-SWD11-8FT-ORB-DOOR-ZBar-DIY-B42/303047723