Deprecated
Deprecated components will be removed in future major versions of Polaris. These components could be deprecated for anumber of reasonsand should be avoided. These components will show warnings in the component file and provide details for alternative usage. For more information, check out thecomponent lifecycles.
-
Caption
Caption text size is smaller than the recommended size for general reading. On web, it should be used only in a graph or as a timestamp for a list item. On Android and iOS, it can also be used as help text or as other kinds of secondary text for list items.
-
Display text
Display styles make a bold visual statement. Use them to create impact when the main goal is visual storytelling. For example, use display text to convince or reassure merchants such as in marketing content or to capture attention during onboarding.
-
Heading
Headings are used as the titles of each major section of a page in the interface. For example, card components generally use headings as their title.
-
Legacy filters
这是a legacy version of the Filters component, which is a composite component that filters the items of a list or table.
-
Setting toggle
Use to give merchants control over a feature or option that can be turned on or off.
-
Sheet
A sheet is a large container that enters from the edge of the screen when triggered by the merchant. It’s used to provide merchants with actions and information contextual to the page. It doesn’t interrupt their flow like a modal.
-
Subheading
Subheadings are used for the title of any sub-sections in top-level page sections.
-
Text container
A text container is used to wrap text elements such as paragraphs, headings, and lists to give them vertical spacing.
-
文本样式
文本样式enhances text with additional visual meaning. For example, using subdued text to de-emphasize it from its surrounding text.
-
Visually hidden
Use when an element needs to be available to assistive technology (for example, a screen reader) but otherwise hidden.