Onsagers variational principle (OVP) was originally proposed by Lars Onsager in 1931 [L. Onsager,Phys. Rev., 1931,37, 405]. This fundamental principle provides a very powerful tool for formulating thermodynamically consistent models. It can also be employed to find approximate solutions, especially in the study of soft matter dynamics. In this work, OVP is extended and applied to the dynamic modeling of active soft matter such as suspensions of bacteria and aggregates of animal cells. We first extend the general formulation of OVP to active matter dynamics where active forces are included as external non-conservative forces. We then use OVP to analyze the directional motion of individual active units: a molecular motor walking on a stiff biofilament and a toy two-sphere microswimmer. Next we use OVP to formulate a diffuse-interface model for an active polar droplet on a solid substrate. In addition to the generalized hydrodynamic equations for active polar fluids in the bulk region, we have also derived thermodynamically consistent boundary conditions. Finally, we consider the dynamics of a thin active polar droplet under the lubrication approximation. We use OVP to derive a generalized thin film equation and then employ OVP as an approximation tool to find the spreading laws for the thin active polar droplet. By incorporating the activity of biological systems into OVP, we develop a general approach to construct thermodynamically consistent models for better understanding the emergent behaviors of individual animal cells and cell aggregates or tissues.