HomeFeature
This component is mainly used in conjunction with wrap/eject in Custom Theme , and is different from components that are directly imported in MDX. You can modify the styles and functions by passing component props or directly overriding the component. If you override the entire component through eject, please note that the reading of the corresponding configuration options of the component will become invalid and you need to control it yourself.
This component is part of the homepage. HomeFeature renders a feature grid below the Hero section on the homepage.
Usage
Modify or override through custom theme.
You can configure features in the frontmatter of your mdx file, and the component will automatically read it through useFrontmatter. For detailed configuration options, refer to Frontmatter Configuration.
Props
features
- Type:
Feature[] - Default: Read from frontmatter
spancontrols how many grid columns each card occupies, total 12 columnsiconanddetailssupport HTML strings- Setting
linkmakes the card clickable for navigation