Legend component card style

This sample demonstrates how to render the Legend component using the card style. This style renders the legend in a more compact stacked card layout designed for smaller screens. Other layouts for card style include side-by-side, a horizontal layout, and auto, which switches between stack and side-by-side depending on screen size.

Use dark colors for code blocksCopy
1
  <arcgis-legend legend-style="card" position="bottom-left"></arcgis-legend>

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.