Cal. Civ. Proc. Code § 128.5
(b) For purposes of this section:
(f) Sanctions ordered pursuant to this section shall be ordered pursuant to the following conditions and procedures:
(1) If, after notice and a reasonable opportunity to respond, the court issues an order pursuant to subdivision (a), the court may, subject to the conditions stated below, impose an appropriate sanction upon the party, the party’s attorneys, or both, for an action or tactic described in subdivision (a). In determining what sanctions, if any, should be ordered, the court shall consider whether a party seeking sanctions has exercised due diligence.
(2) An order for sanctions pursuant to this section shall be limited to what is sufficient to deter repetition of the action or tactic or comparable action or tactic by others similarly situated. Subject to the limitations in subparagraphs (A) and (B), the sanction may consist of, or include, directives of a nonmonetary nature, an order to pay a penalty into court, or, if imposed on motion and warranted for effective deterrence, an order directing payment to the movant of some or all of the reasonable attorney’s fees and other expenses incurred as a direct result of the action or tactic described in subdivision (a).