Skip to main content

<st-feature-item>

JSON type: FeatureItem

One feature tile for st-features-section: optional icon, title (<h3>), Markdown description and an optional "Learn more" link, rendered on an st-card. icon is an Iconify name (e.g. mdi:rocket). The link is a plain <a href>, so it works without JavaScript; the click is composed, so an SPA router can intercept it (e.g. via event.composedPath()) and navigate client-side. http(s) links open in a new tab.

Usage​

import '@sankhyatronics/sankhya-cms/feature-item'; // registers <st-feature-item>

Properties​

PropertyAttributeTypeDefaultDescription
iconiconstring''Iconify icon name, e.g. mdi:rocket.
titletitlestring''
descriptiondescriptionstring''Markdown.
hrefhrefstring''
actionLabelaction-labelstring'Learn more'
invertedinvertedbooleanfalse
variantvariant'default' | 'panel''default'default is the icon card; panel is the compact card without an icon tile.

See the live examples in Storybook.