There is no default option to dab in Minecraft. A mod is necessary to be installed in order to do that. Luckily, there this mod is available for installation from the link posted below. Also, you have to install a mod loader, because the JAR files won't work without them.
Here is the link to the DAB mod: https://mods.curse.com/mc-mods/minecraft/258582-dab-mod
Read the description of the software to learn how to properly install the mod and what else needs to be installed as well.