I only pickle the bulbs, this is the recipe I used:
Ingredients
1 pound ramps (Allium tricoccum)
1 cup water
1 1/4 cups white wine vinegar (or apple vinegar)
2 tablespoons honey
1 tablespoon Kosher salt (or other non-iodized salts)
1 small hot chile pepper (chopped or crushed (you can use fresh or dried))
2 to 4 whole spicebush (Lindera benzoin) or allspice berries
1/2 teaspoon whole mustard seeds
1/2 teaspoon whole coriander seeds
1/4 teaspoon whole cumin seeds
6 to 8 whole black peppercorns
Steps to Make It
Gather the ingredients.
Slice off the string roots at the bottom of the ramps and then a little bit above the point where the white part ends and the green leaves separate out. Wash the ramps well. You're only going to pickle those white parts with a bit of the green attached, but don't throw out the leaves; save them for another recipe.
Prepare the brine by putting the water, vinegar, honey, and salt in a small saucepan and stir to combine.
Add the chile pepper, spicebush or allspice, mustard, coriander, cumin, and black pepper.
Bring to a boil over high heat. Reduce the heat to low and simmer for 5 minutes.
Place a clean 1/2 pint canning jar (it is not necessary to sterilize the jars for this recipe) on its side. Lay the ramps in with the white part toward the bottom of the jar. Laying them with the jar on its side makes it easier to keep the ramps straight so that they will all line up vertically when you set the jar upright.
Pack the ramps in so tightly that you cannot squeeze in a single ramp more. This will ensure that the ramps stay immersed in the brine rather than floating up out of it. Be sure to leave 1/2-inch headspace between the top of the ramps and the rim of the jar (trim the ramps if they are too tall).
Pour the hot brine over the ramps, covering them completely but still leaving 1/4- to 1/2-inch headspace; you can refrigerate leftover brine and use it for future batches of pickles. Screw on canning lids.
Process the pickled ramps in a boiling water bath for 10 minutes. Wait at least a week for the flavors to develop before sampling (they will be even better after a month).