@redis-ui/components 51.25.0 → 51.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,28 @@
1
+ const require_Typography = require("../Typography/Typography.cjs");
2
+ const require_UseCaseList_style = require("./UseCaseList.style.cjs");
3
+ let react_jsx_runtime = require("react/jsx-runtime");
4
+ //#region src/UseCaseList/UseCaseList.tsx
5
+ var formatPosition = (index) => String(index + 1).padStart(2, "0");
6
+ var UseCaseList = ({ items, ...restProps }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_UseCaseList_style.UseCaseList, {
7
+ role: "list",
8
+ ...restProps,
9
+ children: items.map(({ title, description, icon }, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_UseCaseList_style.UseCaseListItem, {
10
+ $numbered: !icon,
11
+ children: [icon ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_UseCaseList_style.UseCaseListIcon, {
12
+ "aria-hidden": true,
13
+ children: icon
14
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_UseCaseList_style.UseCaseListNumber, {
15
+ "aria-hidden": true,
16
+ children: formatPosition(index)
17
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_UseCaseList_style.UseCaseListText, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.default.Body, {
18
+ variant: "semiBold",
19
+ children: title
20
+ }), description && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.default.Body, {
21
+ size: "S",
22
+ color: "secondary",
23
+ children: description
24
+ })] })]
25
+ }, `${index}-${title}`))
26
+ });
27
+ //#endregion
28
+ exports.default = UseCaseList;
@@ -0,0 +1,3 @@
1
+ import { UseCaseListProps } from './UseCaseList.types';
2
+ declare const UseCaseList: ({ items, ...restProps }: UseCaseListProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default UseCaseList;
@@ -0,0 +1,28 @@
1
+ import Typography from "../Typography/Typography.js";
2
+ import { UseCaseList as UseCaseList$1, UseCaseListIcon, UseCaseListItem, UseCaseListNumber, UseCaseListText } from "./UseCaseList.style.js";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ //#region src/UseCaseList/UseCaseList.tsx
5
+ var formatPosition = (index) => String(index + 1).padStart(2, "0");
6
+ var UseCaseList = ({ items, ...restProps }) => /* @__PURE__ */ jsx(UseCaseList$1, {
7
+ role: "list",
8
+ ...restProps,
9
+ children: items.map(({ title, description, icon }, index) => /* @__PURE__ */ jsxs(UseCaseListItem, {
10
+ $numbered: !icon,
11
+ children: [icon ? /* @__PURE__ */ jsx(UseCaseListIcon, {
12
+ "aria-hidden": true,
13
+ children: icon
14
+ }) : /* @__PURE__ */ jsx(UseCaseListNumber, {
15
+ "aria-hidden": true,
16
+ children: formatPosition(index)
17
+ }), /* @__PURE__ */ jsxs(UseCaseListText, { children: [/* @__PURE__ */ jsx(Typography.Body, {
18
+ variant: "semiBold",
19
+ children: title
20
+ }), description && /* @__PURE__ */ jsx(Typography.Body, {
21
+ size: "S",
22
+ color: "secondary",
23
+ children: description
24
+ })] })]
25
+ }, `${index}-${title}`))
26
+ });
27
+ //#endregion
28
+ export { UseCaseList as default };
@@ -0,0 +1,54 @@
1
+ const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
2
+ const require_Typography = require("../Typography/Typography.cjs");
3
+ let styled_components = require("styled-components");
4
+ styled_components = require_runtime.__toESM(styled_components, 1);
5
+ let _redislabsdev_redis_ui_styles = require("@redis-ui/styles");
6
+ //#region src/UseCaseList/UseCaseList.style.ts
7
+ var UseCaseList = styled_components.default.ul.withConfig({
8
+ displayName: "UseCaseListstyle__UseCaseList",
9
+ componentId: "RedisUI__sc-fvyp7z-0"
10
+ })(["display:flex;flex-direction:column;min-width:0;margin:0;padding:0;list-style:none;"]);
11
+ var UseCaseListItem = styled_components.default.li.withConfig({
12
+ displayName: "UseCaseListstyle__UseCaseListItem",
13
+ componentId: "RedisUI__sc-fvyp7z-1"
14
+ })([
15
+ "display:flex;align-items:",
16
+ ";gap:",
17
+ ";padding-block:",
18
+ ";&:first-child{padding-top:",
19
+ ";}&:not(:first-child){border-top:",
20
+ ";}"
21
+ ], ({ $numbered }) => $numbered ? "baseline" : "flex-start", () => (0, _redislabsdev_redis_ui_styles.useTheme)().core.space.space200, () => (0, _redislabsdev_redis_ui_styles.useTheme)().core.space.space200, () => (0, _redislabsdev_redis_ui_styles.useTheme)().core.space.space050, () => {
22
+ const { core, components } = (0, _redislabsdev_redis_ui_styles.useTheme)();
23
+ return `${core.space.space010} solid ${(0, _redislabsdev_redis_ui_styles.withOpacity)(components.card.variants.primary.borderColor, .55)}`;
24
+ });
25
+ var leadSlot = styled_components.css`
26
+ flex: none;
27
+ width: ${() => (0, _redislabsdev_redis_ui_styles.useTheme)().core.icon.size.L};
28
+ `;
29
+ var UseCaseListIcon = styled_components.default.span.withConfig({
30
+ displayName: "UseCaseListstyle__UseCaseListIcon",
31
+ componentId: "RedisUI__sc-fvyp7z-2"
32
+ })([
33
+ "",
34
+ ";display:flex;margin-top:",
35
+ ";color:",
36
+ ";"
37
+ ], leadSlot, () => (0, _redislabsdev_redis_ui_styles.useTheme)().core.space.space025, () => (0, _redislabsdev_redis_ui_styles.useTheme)().components.typography.colors.secondary);
38
+ var UseCaseListNumber = (0, styled_components.default)(require_Typography.default.Code).attrs({
39
+ size: "S",
40
+ color: "secondary"
41
+ }).withConfig({
42
+ displayName: "UseCaseListstyle__UseCaseListNumber",
43
+ componentId: "RedisUI__sc-fvyp7z-3"
44
+ })(["", ";"], leadSlot);
45
+ var UseCaseListText = styled_components.default.div.withConfig({
46
+ displayName: "UseCaseListstyle__UseCaseListText",
47
+ componentId: "RedisUI__sc-fvyp7z-4"
48
+ })(["display:flex;flex-direction:column;gap:", ";min-width:0;"], () => (0, _redislabsdev_redis_ui_styles.useTheme)().core.space.space050);
49
+ //#endregion
50
+ exports.UseCaseList = UseCaseList;
51
+ exports.UseCaseListIcon = UseCaseListIcon;
52
+ exports.UseCaseListItem = UseCaseListItem;
53
+ exports.UseCaseListNumber = UseCaseListNumber;
54
+ exports.UseCaseListText = UseCaseListText;
@@ -0,0 +1,10 @@
1
+ export declare const UseCaseList: import("styled-components").StyledComponent<"ul", any, {}, never>;
2
+ export declare const UseCaseListItem: import("styled-components").StyledComponent<"li", any, {
3
+ $numbered: boolean;
4
+ }, never>;
5
+ export declare const UseCaseListIcon: import("styled-components").StyledComponent<"span", any, {}, never>;
6
+ export declare const UseCaseListNumber: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("..").TypographyCodeProps & import("react").RefAttributes<HTMLElement>>, any, {
7
+ size: "S";
8
+ color: "secondary";
9
+ }, "color" | "size">;
10
+ export declare const UseCaseListText: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,48 @@
1
+ import Typography from "../Typography/Typography.js";
2
+ import _styled, { css } from "styled-components";
3
+ import { useTheme, withOpacity } from "@redis-ui/styles";
4
+ //#region src/UseCaseList/UseCaseList.style.ts
5
+ var UseCaseList = _styled.ul.withConfig({
6
+ displayName: "UseCaseListstyle__UseCaseList",
7
+ componentId: "RedisUI__sc-fvyp7z-0"
8
+ })(["display:flex;flex-direction:column;min-width:0;margin:0;padding:0;list-style:none;"]);
9
+ var UseCaseListItem = _styled.li.withConfig({
10
+ displayName: "UseCaseListstyle__UseCaseListItem",
11
+ componentId: "RedisUI__sc-fvyp7z-1"
12
+ })([
13
+ "display:flex;align-items:",
14
+ ";gap:",
15
+ ";padding-block:",
16
+ ";&:first-child{padding-top:",
17
+ ";}&:not(:first-child){border-top:",
18
+ ";}"
19
+ ], ({ $numbered }) => $numbered ? "baseline" : "flex-start", () => useTheme().core.space.space200, () => useTheme().core.space.space200, () => useTheme().core.space.space050, () => {
20
+ const { core, components } = useTheme();
21
+ return `${core.space.space010} solid ${withOpacity(components.card.variants.primary.borderColor, .55)}`;
22
+ });
23
+ var leadSlot = css`
24
+ flex: none;
25
+ width: ${() => useTheme().core.icon.size.L};
26
+ `;
27
+ var UseCaseListIcon = _styled.span.withConfig({
28
+ displayName: "UseCaseListstyle__UseCaseListIcon",
29
+ componentId: "RedisUI__sc-fvyp7z-2"
30
+ })([
31
+ "",
32
+ ";display:flex;margin-top:",
33
+ ";color:",
34
+ ";"
35
+ ], leadSlot, () => useTheme().core.space.space025, () => useTheme().components.typography.colors.secondary);
36
+ var UseCaseListNumber = _styled(Typography.Code).attrs({
37
+ size: "S",
38
+ color: "secondary"
39
+ }).withConfig({
40
+ displayName: "UseCaseListstyle__UseCaseListNumber",
41
+ componentId: "RedisUI__sc-fvyp7z-3"
42
+ })(["", ";"], leadSlot);
43
+ var UseCaseListText = _styled.div.withConfig({
44
+ displayName: "UseCaseListstyle__UseCaseListText",
45
+ componentId: "RedisUI__sc-fvyp7z-4"
46
+ })(["display:flex;flex-direction:column;gap:", ";min-width:0;"], () => useTheme().core.space.space050);
47
+ //#endregion
48
+ export { UseCaseList, UseCaseListIcon, UseCaseListItem, UseCaseListNumber, UseCaseListText };
@@ -0,0 +1,12 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export type UseCaseListItem = {
3
+ title: string;
4
+ description?: ReactNode;
5
+ /** Leading icon, sized `L`. Without one, the row shows its position as a two-digit number */
6
+ icon?: ReactNode;
7
+ };
8
+ export type OwnUseCaseListProps = {
9
+ items: UseCaseListItem[];
10
+ };
11
+ export type RestUseCaseListProps = HTMLAttributes<HTMLUListElement>;
12
+ export type UseCaseListProps = OwnUseCaseListProps & RestUseCaseListProps;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export { default as UseCaseList } from './UseCaseList';
2
+ export * from './UseCaseList.types';
@@ -0,0 +1,2 @@
1
+ export { default as UseCaseList } from './UseCaseList';
2
+ export * from './UseCaseList.types';
package/dist/index.cjs CHANGED
@@ -114,6 +114,7 @@ const require_context = require("./Toast/core/context.cjs");
114
114
  const require_Toast = require("./Toast/Toast.cjs");
115
115
  const require_core = require("./Toast/core/core.cjs");
116
116
  const require_Toaster = require("./Toast/Toaster.cjs");
117
+ const require_UseCaseList = require("./UseCaseList/UseCaseList.cjs");
117
118
  const require_ProgressBar = require("./ProgressBar/ProgressBar.cjs");
118
119
  const require_ProfileIcon_style = require("./ProfileIcon/ProfileIcon.style.cjs");
119
120
  const require_ProfileIcon = require("./ProfileIcon/ProfileIcon.cjs");
@@ -267,6 +268,7 @@ exports.TooltipCard = require_TooltipCard.default;
267
268
  exports.TooltipProvider = require_Provider.default;
268
269
  exports.TreeView = require_TreeView.default;
269
270
  exports.Typography = require_Typography.default;
271
+ exports.UseCaseList = require_UseCaseList.default;
270
272
  exports.actionIconButtonSizes = require_ActionIconButton_types.actionIconButtonSizes;
271
273
  exports.badgeVariants = require_Badge_types.badgeVariants;
272
274
  exports.bannerVariants = require_Banner_types.bannerVariants;
package/dist/index.d.ts CHANGED
@@ -51,6 +51,7 @@ export * from './Toast';
51
51
  export * from './Tooltip';
52
52
  export * from './TreeView';
53
53
  export * from './Typography';
54
+ export * from './UseCaseList';
54
55
  export * from './ProgressBar';
55
56
  export * from './ProfileIcon';
56
57
  export * from './Slider';
package/dist/index.js CHANGED
@@ -114,8 +114,9 @@ import { useToastParams } from "./Toast/core/context.js";
114
114
  import Toast from "./Toast/Toast.js";
115
115
  import { toast } from "./Toast/core/core.js";
116
116
  import Toaster from "./Toast/Toaster.js";
117
+ import UseCaseList from "./UseCaseList/UseCaseList.js";
117
118
  import { ProgressBar } from "./ProgressBar/ProgressBar.js";
118
119
  import { ProfileIcon_style_exports } from "./ProfileIcon/ProfileIcon.style.js";
119
120
  import ProfileIcon from "./ProfileIcon/ProfileIcon.js";
120
121
  import Slider from "./Slider/Slider.js";
121
- export { ActionIconButton_style_exports as ActionButtonWithIconStyles, ActionIconButton, AppBar, AppBar_style_exports as AppBarStyles, AppSelectionMenu, AutoCompleteSelect, Badge, Badge_style_exports as BadgeStyles, Banner, BoxSelectionGroup, Breadcrumbs, Button, ButtonGroup, Button_style_exports as ButtonStyles, IconButton_style_exports as ButtonWithIconStyles, Card, CategoryValueList, Checkbox, Chip, ChipContainer, ChipList, CodeBlock, ContextProvider, CopyToClipboardButton, CountryFlag, Drawer, ErrorContentProvider, FieldAdditionTextIdProvider, FieldAdditionTextIdTransProvider, FieldDisabledProvider, FieldDisabledTransProvider, FieldReadonlyProvider, FieldReadonlyTransProvider, FieldRequiredProvider, FieldRequiredTransProvider, FieldStatusProvider, FieldStatusTransProvider, Filters, FlexDivider, FlexGroup, FlexItem, FlexSplit, FormField, Gauge, Grid, Hero, HighlightedIcon, HighlightedIcon_style_exports as HighlightedIconStyles, IconButton, Input, KeyValueList, Label, Link, LinkList, LinkStyler, Loader, Menu, MidBar, Modal, MoreInfoIcon, MultiBoxSelectionGroup, MultiSelect, NumericInput, Overflow, Pagination, PasswordInput, Popover, PopperProvider, ProfileIcon, ProfileIcon_style_exports as ProfileIconStyles, ProgressBar, QuantityCounter, RadioGroup, RestylableElement, ScreenReaderAnnounce, SearchBar, SearchInput, Section, Select, SelfContained, SharedIdProvider, SharedIdTransProvider, SideBar, Skeleton, Slider, Stepper, StepperStepState, Switch, TableHeading, Tabs, TextArea, TextButton, TextButton_style_exports as TextButtonStyles, ThemeModeSwitch, Toast, Toaster, ToggleButton, ToggleButton_style_exports as ToggleButtonStyles, Tooltip, TooltipCard, Provider as TooltipProvider, TreeView, Typography, actionIconButtonSizes, badgeVariants, bannerVariants, buttonSizes, buttonVariants, buttonWithIconVariants, cardHoverEffects, cardVariants, childrenToString, codeBlockOverflows, codeBlockSizes, combineHandlers, copyToClipboardButtonVariants, createNullableContext, createPrimitiveContextState, debounce, forwardRefWithGenerics, generateId, getClosestDivisibleNumber, handlePreventDefault, handleStopPropagation, iconButtonSizes, isFragmentElement, isTextualNode, memoWithGenerics, textButtonSizes, textButtonVariants, throttle, toast, typographyColors, useEllipsisTooltip, useErrorContent, useFieldAdditionTextId, useFieldDisabled, useFieldReadonly, useFieldRequired, useFieldStatus, useGeneratedId, useInputValueApi, useInputValueProps, useKeyValueList, useMultiSelectContext, usePaginationContext, usePopperContext, useScrollable, useSelectContext, useSharedId, useThemeModeSwitch, useToastParams };
122
+ export { ActionIconButton_style_exports as ActionButtonWithIconStyles, ActionIconButton, AppBar, AppBar_style_exports as AppBarStyles, AppSelectionMenu, AutoCompleteSelect, Badge, Badge_style_exports as BadgeStyles, Banner, BoxSelectionGroup, Breadcrumbs, Button, ButtonGroup, Button_style_exports as ButtonStyles, IconButton_style_exports as ButtonWithIconStyles, Card, CategoryValueList, Checkbox, Chip, ChipContainer, ChipList, CodeBlock, ContextProvider, CopyToClipboardButton, CountryFlag, Drawer, ErrorContentProvider, FieldAdditionTextIdProvider, FieldAdditionTextIdTransProvider, FieldDisabledProvider, FieldDisabledTransProvider, FieldReadonlyProvider, FieldReadonlyTransProvider, FieldRequiredProvider, FieldRequiredTransProvider, FieldStatusProvider, FieldStatusTransProvider, Filters, FlexDivider, FlexGroup, FlexItem, FlexSplit, FormField, Gauge, Grid, Hero, HighlightedIcon, HighlightedIcon_style_exports as HighlightedIconStyles, IconButton, Input, KeyValueList, Label, Link, LinkList, LinkStyler, Loader, Menu, MidBar, Modal, MoreInfoIcon, MultiBoxSelectionGroup, MultiSelect, NumericInput, Overflow, Pagination, PasswordInput, Popover, PopperProvider, ProfileIcon, ProfileIcon_style_exports as ProfileIconStyles, ProgressBar, QuantityCounter, RadioGroup, RestylableElement, ScreenReaderAnnounce, SearchBar, SearchInput, Section, Select, SelfContained, SharedIdProvider, SharedIdTransProvider, SideBar, Skeleton, Slider, Stepper, StepperStepState, Switch, TableHeading, Tabs, TextArea, TextButton, TextButton_style_exports as TextButtonStyles, ThemeModeSwitch, Toast, Toaster, ToggleButton, ToggleButton_style_exports as ToggleButtonStyles, Tooltip, TooltipCard, Provider as TooltipProvider, TreeView, Typography, UseCaseList, actionIconButtonSizes, badgeVariants, bannerVariants, buttonSizes, buttonVariants, buttonWithIconVariants, cardHoverEffects, cardVariants, childrenToString, codeBlockOverflows, codeBlockSizes, combineHandlers, copyToClipboardButtonVariants, createNullableContext, createPrimitiveContextState, debounce, forwardRefWithGenerics, generateId, getClosestDivisibleNumber, handlePreventDefault, handleStopPropagation, iconButtonSizes, isFragmentElement, isTextualNode, memoWithGenerics, textButtonSizes, textButtonVariants, throttle, toast, typographyColors, useEllipsisTooltip, useErrorContent, useFieldAdditionTextId, useFieldDisabled, useFieldReadonly, useFieldRequired, useFieldStatus, useGeneratedId, useInputValueApi, useInputValueProps, useKeyValueList, useMultiSelectContext, usePaginationContext, usePopperContext, useScrollable, useSelectContext, useSharedId, useThemeModeSwitch, useToastParams };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@redis-ui/components",
3
3
  "license": "UNLICENSED",
4
- "version": "51.25.0",
4
+ "version": "51.26.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "repository": "git@github.com:redislabsdev/redis-ui.git",
@@ -171,6 +171,7 @@ Always check the relevant component reference before using a component. The refe
171
171
  - [ProgressBar](./references/ProgressBar.md)
172
172
  - [Gauge](./references/Gauge.md)
173
173
  - [Typography](./references/Typography.md)
174
+ - [UseCaseList](./references/UseCaseList.md)
174
175
  - [MoreInfoIcon](./references/MoreInfoIcon.md)
175
176
  - [HighlightedIcon](./references/HighlightedIcon.md)
176
177
  - [Icons](./references/Icons.md)
@@ -0,0 +1,86 @@
1
+ # UseCaseList
2
+
3
+ A list of use cases, each a title with an optional description, separated by thin dividers. Use it on product landing pages and empty states to show what a product is for.
4
+
5
+ ## Import
6
+
7
+ ```tsx
8
+ import { UseCaseList, UseCaseListItem } from '@redis-ui/components';
9
+ ```
10
+
11
+ Icons in the examples come from:
12
+
13
+ ```tsx
14
+ import { DatabaseIcon, LeaderboardsIcon, NodesIcon } from '@redis-ui/icons';
15
+ ```
16
+
17
+ ## Props
18
+
19
+ | Prop | Type | Default | Description |
20
+ |------|------|---------|-------------|
21
+ | items | `UseCaseListItem[]` | required | Rows to render |
22
+
23
+ The component also extends `React.HTMLAttributes<HTMLUListElement>`, passed to the list.
24
+
25
+ ### UseCaseListItem
26
+
27
+ | Field | Type | Description |
28
+ |-------|------|-------------|
29
+ | title | `string` | Row title |
30
+ | description | `ReactNode` | Optional secondary text below the title |
31
+ | icon | `ReactNode` | Optional rendered icon, sized `L`. Without one, the row shows its position as a two-digit number (`01`, `02`, ...) |
32
+
33
+ ## Examples
34
+
35
+ ### Basic Usage
36
+
37
+ > Each row leads with its icon.
38
+
39
+ ```tsx
40
+ const items: UseCaseListItem[] = [
41
+ {
42
+ title: 'Caching and session store',
43
+ description:
44
+ 'Put Redis in front of a slower database, or hold session and token state that has to be read on every request.',
45
+ icon: <DatabaseIcon size="L" />
46
+ },
47
+ {
48
+ title: 'Real-time counters and leaderboards',
49
+ description:
50
+ 'Sorted sets and atomic counters handle ranking, rate limiting and quotas at write speed.',
51
+ icon: <LeaderboardsIcon size="L" />
52
+ },
53
+ {
54
+ title: 'Queues and streams between services',
55
+ description: 'Hand work between services with predictable latency instead of polling a table.',
56
+ icon: <NodesIcon size="L" />
57
+ }
58
+ ];
59
+
60
+ <UseCaseList items={items} style={{ width: '64rem' }} />
61
+ ```
62
+
63
+ ### Numbered
64
+
65
+ > Rows without an icon show their position as a two-digit number.
66
+
67
+ ```tsx
68
+ <UseCaseList items={items.map(({ title, description }) => ({ title, description }))} />
69
+ ```
70
+
71
+ ### Mixed
72
+
73
+ > Icons and numbers share one slot width, so the text of every row starts on the same line.
74
+
75
+ ```tsx
76
+ <UseCaseList
77
+ items={items.map(({ icon, ...item }, index) => (index === 1 ? item : { ...item, icon }))}
78
+ />
79
+ ```
80
+
81
+ ## Notes
82
+
83
+ - `icon` takes a rendered node, so both `@redis-ui/icons` icons and custom SVG components work. It inherits the secondary text color.
84
+ - The icon or number sits in a fixed slot as wide as an `L` icon, so the text of every row starts on the same line, even when only some rows have icons.
85
+ - Icons and numbers are decorative and hidden from assistive technology; the list semantics already announce each row's position.
86
+ - Put the section heading ("Use cases") on the page; the component renders only the list and fills the width it is given.