In the Cartesian coordinate system, the system of inequalities
$$
\left\{\begin{array}{l}
\sqrt{3} x-y \leqslant 0, \\
x-\sqrt{3} y+2 \geqslant 0 \\
y \geqslant 0
\end{array}\right.
$$

represents a planar region whose area is equal to ( ).
(A) $\frac{\sqrt{3}}{2}$
(B) $\sqrt{3}$
(C) 2
(D) $2 \sqrt{3}$
2. B.

The system of inequalities represents the interior (including the boundary) of a triangular plane region, with the coordinates of the three vertices being $A(-2,0), O(0,0), B(1, \sqrt{3})$.
It is easy to see that, $S_{\triangle A O B}=\frac{1}{2} \times 2 \times \sqrt{3}=\sqrt{3}$.