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.
<arcgis-legend legend-style="card" position="bottom-left"></arcgis-legend>