Add the broccoli, crumbled bacon, cranberries, cheddar cheese, sunflower seeds, and onion (if using) to a large mixing bowl.
Whisk together the mayonnaise, maple syrup, and apple cider vinegar.
Pour over the salad and toss to coat.
Cover the salad and refrigerate at least 30 minutes before serving.