igniteui-astro-components 0.0.27 → 0.0.29

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.
Files changed (96) hide show
  1. package/README.md +82 -74
  2. package/package.json +16 -2
  3. package/src/assets/images/anatomy-test.png +0 -0
  4. package/src/components/CopyCode/CopyCode.astro +21 -7
  5. package/src/components/DocsBreadcrumb/DocsBreadcrumb.astro +33 -21
  6. package/src/components/DocsBreadcrumb/DocsBreadcrumb.scss +44 -43
  7. package/src/components/DocsBreadcrumb/README.md +10 -14
  8. package/src/components/DocsSidebar/DocsSidebar.astro +47 -45
  9. package/src/components/DocsSidebar/DocsSidebar.scss +120 -122
  10. package/src/components/DocsSidebar/README.md +25 -21
  11. package/src/components/DocsSidebar/SidebarFilterInput.astro +24 -29
  12. package/src/components/DocsSidebar/SidebarFilterInput.scss +90 -89
  13. package/src/components/DocsSidebar/SidebarLabel.astro +35 -26
  14. package/src/components/DocsSidebar/sidebar-filter.ts +93 -56
  15. package/src/components/DocsSubHeader/DocsSubHeader.astro +256 -195
  16. package/src/components/DocsSubHeader/DocsSubHeader.scss +181 -178
  17. package/src/components/DocsSubHeader/README.md +18 -16
  18. package/src/components/DocsToc/DocsToc.astro +301 -280
  19. package/src/components/DocsToc/DocsToc.scss +20 -21
  20. package/src/components/DocsToc/README.md +11 -9
  21. package/src/components/DocsToc/toTreeNodes.ts +3 -8
  22. package/src/components/DocsTree/DocsTree.astro +32 -20
  23. package/src/components/DocsTree/DocsTreeItem.astro +35 -30
  24. package/src/components/DocsTree/README.md +16 -15
  25. package/src/components/DocsTree/docs-tree.scss +267 -268
  26. package/src/components/GlobalFooter/GlobalFooter.astro +10 -10
  27. package/src/components/GlobalFooter/README.md +3 -2
  28. package/src/components/GlobalNavBar/GlobalNavBar.astro +4 -2
  29. package/src/components/GlobalNavBar/GlobalNavBar.module.scss +222 -222
  30. package/src/components/GlobalNavBar/README.md +3 -2
  31. package/src/components/LicenseIndicator/LicenseIndicator.astro +7 -5
  32. package/src/components/LicenseIndicator/LicenseIndicator.scss +3 -3
  33. package/src/components/MobileSidebarToggle/MobileSidebarToggle.astro +16 -17
  34. package/src/components/MobileSidebarToggle/README.md +3 -2
  35. package/src/components/MobileTocToggle/MobileTocToggle.astro +75 -61
  36. package/src/components/MobileTocToggle/MobileTocToggle.scss +65 -59
  37. package/src/components/Search/README.md +1 -0
  38. package/src/components/Search/Search.astro +137 -109
  39. package/src/components/Search/Search.scss +20 -20
  40. package/src/components/SearchAdvanced/README.md +21 -15
  41. package/src/components/SearchAdvanced/SearchAdvanced.astro +205 -133
  42. package/src/components/SearchAdvanced/SearchAdvanced.scss +152 -153
  43. package/src/components/mdx/Anatomy/Anatomy.astro +51 -0
  44. package/src/components/mdx/Anatomy/Anatomy.scss +40 -0
  45. package/src/components/mdx/ApiLink/ApiLink.astro +133 -113
  46. package/src/components/mdx/ApiLink/ApiLink.scss +9 -9
  47. package/src/components/mdx/ApiLink/README.md +26 -22
  48. package/src/components/mdx/ApiLink/api-link-index.ts +196 -173
  49. package/src/components/mdx/ApiRef/ApiRef.astro +54 -51
  50. package/src/components/mdx/ApiRef/README.md +20 -15
  51. package/src/components/mdx/Badge/Badge.astro +14 -14
  52. package/src/components/mdx/Badge/Badge.scss +61 -56
  53. package/src/components/mdx/Badge/README.md +24 -19
  54. package/src/components/mdx/DocsAside/DocsAside.astro +30 -37
  55. package/src/components/mdx/DocsAside/DocsAside.scss +82 -82
  56. package/src/components/mdx/DocsAside/README.md +22 -22
  57. package/src/components/mdx/Faq/Faq.astro +86 -0
  58. package/src/components/mdx/Faq/Faq.scss +105 -0
  59. package/src/components/mdx/Faq/FaqItem.astro +117 -0
  60. package/src/components/mdx/Faq/README.md +223 -0
  61. package/src/components/mdx/Faq/types.ts +34 -0
  62. package/src/components/mdx/PlatformBlock/PlatformBlock.astro +3 -2
  63. package/src/components/mdx/PlatformBlock/README.md +6 -8
  64. package/src/components/mdx/Sample/README.md +21 -16
  65. package/src/components/mdx/Sample/Sample.astro +97 -74
  66. package/src/components/mdx/Sample/Sample.scss +132 -132
  67. package/src/content-helper.ts +71 -72
  68. package/src/content.config.ts +1 -6
  69. package/src/integration.ts +566 -512
  70. package/src/layouts/DocsLayout/DocsLayout.astro +228 -182
  71. package/src/layouts/DocsLayout/DocsLayout.scss +261 -261
  72. package/src/layouts/DocsLayout/README.md +24 -35
  73. package/src/lib/nav-helpers.ts +88 -82
  74. package/src/lib/types.ts +76 -76
  75. package/src/llms.ts +205 -166
  76. package/src/platform.ts +312 -162
  77. package/src/plugins/rehype-heading-anchors.ts +45 -45
  78. package/src/plugins/rehype-pagefind-ignore.ts +19 -19
  79. package/src/plugins/rehype-table-wrapper.ts +30 -30
  80. package/src/plugins/remark-docfx.ts +12 -0
  81. package/src/plugins/remark-env-vars.ts +12 -4
  82. package/src/plugins/remark-md-links.ts +10 -4
  83. package/src/scripts/icon-manifest.ts +13 -5
  84. package/src/scripts/sample-widget.ts +557 -501
  85. package/src/sidebar.ts +103 -97
  86. package/src/styles/global/_code-blocks.scss +43 -44
  87. package/src/styles/global/_component-themes.scss +151 -153
  88. package/src/styles/global/_icon-gallery.scss +81 -81
  89. package/src/styles/global/_index.scss +0 -1
  90. package/src/styles/global/_markdown.scss +816 -787
  91. package/src/styles/global/_palette.scss +456 -110
  92. package/src/styles/global/_search-shared.scss +402 -398
  93. package/src/styles/global/_type-scale.scss +127 -127
  94. package/src/styles/global/_variables.scss +138 -111
  95. package/src/styles/theme.scss +41 -41
  96. package/src/virtual-modules.d.ts +11 -2
@@ -7,54 +7,51 @@
7
7
  * instead of guessing a URL.
8
8
  */
9
9
  import type { PlatformContext } from '../../../lib/types.ts';
10
- import {
11
- resolveApiLinkFromIndex,
12
- type TypeDocKind,
13
- } from './api-link-index';
10
+ import { resolveApiLinkFromIndex, type TypeDocKind } from './api-link-index';
14
11
  import './ApiLink.scss';
15
12
 
16
13
  /** Props for Sass API documentation links (`kind="sass"`). */
17
14
  type SassProps = {
18
- /** Selects Sass API link mode. */
19
- kind: 'sass';
20
- /** Anchor fragment without `#`, e.g. `mixin-slide-in-left`. */
21
- type?: string;
22
- /** Sass module path segment, e.g. `animations` or `themes`. */
23
- module?: string;
24
- /** Wrap the rendered label in `<code>`. Defaults to `true`. */
25
- code?: boolean;
26
- /** Override the rendered label. */
27
- label?: string;
15
+ /** Selects Sass API link mode. */
16
+ kind: 'sass';
17
+ /** Anchor fragment without `#`, e.g. `mixin-slide-in-left`. */
18
+ type?: string;
19
+ /** Sass module path segment, e.g. `animations` or `themes`. */
20
+ module?: string;
21
+ /** Wrap the rendered label in `<code>`. Defaults to `true`. */
22
+ code?: boolean;
23
+ /** Override the rendered label. */
24
+ label?: string;
28
25
  };
29
26
 
30
27
  /** Props for TypeDoc API documentation links. */
31
28
  type TypeDocProps = {
32
- /**
33
- * TypeDoc symbol kind. Narrows registry lookup when the same symbol exists
34
- * as multiple TypeDoc kinds.
35
- */
36
- kind?: TypeDocKind;
37
- /**
38
- * Short type/symbol name without platform prefix, e.g. "Toast".
39
- * Required for all TypeDoc kinds.
40
- */
41
- type: string;
42
- /** Optional class/interface member, property, method, or enum value anchor. */
43
- member?: string;
44
- /** Package key used only to filter ambiguous registry matches. */
45
- pkg?: string;
46
- /** Override the rendered label. */
47
- label?: string;
48
- /**
49
- * Whether to prepend the platform prefix before registry lookup.
50
- * @default true
51
- */
52
- prefixed?: boolean;
53
- /**
54
- * Whether to try the platform class suffix before the unsuffixed symbol.
55
- * @default true
56
- */
57
- suffix?: boolean;
29
+ /**
30
+ * TypeDoc symbol kind. Narrows registry lookup when the same symbol exists
31
+ * as multiple TypeDoc kinds.
32
+ */
33
+ kind?: TypeDocKind;
34
+ /**
35
+ * Short type/symbol name without platform prefix, e.g. "Toast".
36
+ * Required for all TypeDoc kinds.
37
+ */
38
+ type: string;
39
+ /** Optional class/interface member, property, method, or enum value anchor. */
40
+ member?: string;
41
+ /** Package key used only to filter ambiguous registry matches. */
42
+ pkg?: string;
43
+ /** Override the rendered label. */
44
+ label?: string;
45
+ /**
46
+ * Whether to prepend the platform prefix before registry lookup.
47
+ * @default true
48
+ */
49
+ prefixed?: boolean;
50
+ /**
51
+ * Whether to try the platform class suffix before the unsuffixed symbol.
52
+ * @default true
53
+ */
54
+ suffix?: boolean;
58
55
  };
59
56
 
60
57
  type Props = SassProps | TypeDocProps;
@@ -63,11 +60,16 @@ const ctx = Astro.locals.platformContext as PlatformContext;
63
60
  const { prefix, apiPackages } = ctx;
64
61
  const label = Astro.props.label;
65
62
 
66
- function getIndexedDisplayName(resolvedName: string, displayBaseName: string, type: string, classSuffix?: string) {
67
- if (resolvedName === type) return type;
68
- if (classSuffix && resolvedName === `${type}${classSuffix}`) return type;
69
- if (classSuffix && resolvedName === `${displayBaseName}${classSuffix}`) return type;
70
- return displayBaseName;
63
+ function getIndexedDisplayName(
64
+ resolvedName: string,
65
+ displayBaseName: string,
66
+ type: string,
67
+ classSuffix?: string,
68
+ ) {
69
+ if (resolvedName === type) return type;
70
+ if (classSuffix && resolvedName === `${type}${classSuffix}`) return type;
71
+ if (classSuffix && resolvedName === `${displayBaseName}${classSuffix}`) return type;
72
+ return displayBaseName;
71
73
  }
72
74
 
73
75
  let url: string;
@@ -76,80 +78,98 @@ let renderCode: boolean;
76
78
  let renderLink = false;
77
79
 
78
80
  if (Astro.props.kind === 'sass') {
79
- const { type, module, code = true } = Astro.props;
80
- if (!module) console.warn('[ApiLink] kind="sass" requires a `module` prop - link may be malformed.');
81
- const base = ctx.sassApiUrl?.trim().replace(/\/+$/, '');
82
- const anchor = type ? `#${type}` : '';
83
- if (!base) {
84
- console.warn('[ApiLink] kind="sass" requires `platformContext.sassApiUrl` to be configured - falling back to "#".');
85
- url = '#';
86
- } else {
87
- url = `${base}/${module ?? ''}${anchor}`;
88
- }
89
- displayLabel = label ?? type ?? module ?? '';
90
- renderCode = code;
91
- renderLink = true;
81
+ const { type, module, code = true } = Astro.props;
82
+ if (!module)
83
+ console.warn('[ApiLink] kind="sass" requires a `module` prop - link may be malformed.');
84
+ const base = ctx.sassApiUrl?.trim().replace(/\/+$/, '');
85
+ const anchor = type ? `#${type}` : '';
86
+ if (!base) {
87
+ console.warn(
88
+ '[ApiLink] kind="sass" requires `platformContext.sassApiUrl` to be configured - falling back to "#".',
89
+ );
90
+ url = '#';
91
+ } else {
92
+ url = `${base}/${module ?? ''}${anchor}`;
93
+ }
94
+ displayLabel = label ?? type ?? module ?? '';
95
+ renderCode = code;
96
+ renderLink = true;
92
97
  } else {
93
- const {
94
- type,
95
- member,
96
- pkg = 'core',
97
- prefixed = true,
98
- suffix = true,
99
- } = Astro.props;
100
- const explicitKind = 'kind' in Astro.props ? Astro.props.kind : undefined;
98
+ const { type, member, pkg = 'core', prefixed = true, suffix = true } = Astro.props;
99
+ const explicitKind = 'kind' in Astro.props ? Astro.props.kind : undefined;
101
100
 
102
- const effectivePrefixed = prefixed;
103
- const effectiveSuffix = suffix;
101
+ const effectivePrefixed = prefixed;
102
+ const effectiveSuffix = suffix;
104
103
 
105
- // pkg is an ambiguity override. Without an explicit pkg prop, search the
106
- // combined api-docs index so symbols can resolve from any package.
107
- const explicitPkg = typeof Astro.props.pkg === 'string' && Astro.props.pkg.length > 0;
108
- const pkgConfig = apiPackages[explicitPkg ? pkg : 'core'] ?? apiPackages.core;
109
- const baseType = effectivePrefixed ? `${prefix}${type}` : type;
104
+ // pkg is an ambiguity override. Without an explicit pkg prop, search the
105
+ // combined api-docs index so symbols can resolve from any package.
106
+ const explicitPkg = typeof Astro.props.pkg === 'string' && Astro.props.pkg.length > 0;
107
+ const pkgConfig = apiPackages[explicitPkg ? pkg : 'core'] ?? apiPackages.core;
108
+ const baseType = effectivePrefixed ? `${prefix}${type}` : type;
110
109
 
111
- url = '';
112
- displayLabel = label ?? (member ? `${baseType}.${member}` : baseType);
113
- renderCode = true;
110
+ url = '';
111
+ displayLabel = label ?? (member ? `${baseType}.${member}` : baseType);
112
+ renderCode = true;
114
113
 
115
- const indexed = resolveApiLinkFromIndex({
116
- ctx,
117
- pkgConfig,
118
- explicitPkg,
119
- type,
120
- member,
121
- explicitKind,
122
- prefix,
123
- prefixed: effectivePrefixed,
124
- suffix: effectiveSuffix,
125
- });
114
+ const indexed = resolveApiLinkFromIndex({
115
+ ctx,
116
+ pkgConfig,
117
+ explicitPkg,
118
+ type,
119
+ member,
120
+ explicitKind,
121
+ prefix,
122
+ prefixed: effectivePrefixed,
123
+ suffix: effectiveSuffix,
124
+ });
126
125
 
127
- if (indexed.status === 'resolved') {
128
- url = indexed.url;
129
- renderLink = true;
130
- const indexedDisplay = getIndexedDisplayName(indexed.symbolName, baseType, type, pkgConfig.classSuffix);
131
- displayLabel = label ?? (indexed.memberName ? `${indexedDisplay}.${indexed.memberName}` : indexedDisplay);
132
- } else if (indexed.status === 'ambiguous') {
133
- const symbol = member ? `${type}.${member}` : type;
134
- throw new Error(`[ApiLink] Ambiguous API symbol "${symbol}" matched registry candidate "${indexed.candidate}". Add pkg= or kind= to disambiguate.`);
135
- } else if (indexed.status === 'member-missing') {
136
- renderLink = false;
137
- if (import.meta.env.DEV) {
138
- console.warn(`[ApiLink] Registry symbol "${indexed.candidate}" exists, but member "${member}" was not found. Rendering code text instead of a guessed URL.`);
139
- }
140
- } else if (indexed.status === 'missing') {
141
- renderLink = false;
142
- if (import.meta.env.DEV) {
143
- console.warn(`[ApiLink] Registry miss for ${type}${member ? `.${member}` : ''}. Rendering code text instead of a guessed URL.`);
144
- }
145
- } else if (indexed.status === 'unavailable') {
146
- renderLink = false;
147
- if (import.meta.env.DEV) {
148
- console.warn(`[ApiLink] ApiLink registry is unavailable for ${type}${member ? `.${member}` : ''}. Rendering code text.`);
149
- }
126
+ if (indexed.status === 'resolved') {
127
+ url = indexed.url;
128
+ renderLink = true;
129
+ const indexedDisplay = getIndexedDisplayName(
130
+ indexed.symbolName,
131
+ baseType,
132
+ type,
133
+ pkgConfig.classSuffix,
134
+ );
135
+ displayLabel =
136
+ label ?? (indexed.memberName ? `${indexedDisplay}.${indexed.memberName}` : indexedDisplay);
137
+ } else if (indexed.status === 'ambiguous') {
138
+ const symbol = member ? `${type}.${member}` : type;
139
+ throw new Error(
140
+ `[ApiLink] Ambiguous API symbol "${symbol}" matched registry candidate "${indexed.candidate}". Add pkg= or kind= to disambiguate.`,
141
+ );
142
+ } else if (indexed.status === 'member-missing') {
143
+ renderLink = false;
144
+ if (import.meta.env.DEV) {
145
+ console.warn(
146
+ `[ApiLink] Registry symbol "${indexed.candidate}" exists, but member "${member}" was not found. Rendering code text instead of a guessed URL.`,
147
+ );
148
+ }
149
+ } else if (indexed.status === 'missing') {
150
+ renderLink = false;
151
+ if (import.meta.env.DEV) {
152
+ console.warn(
153
+ `[ApiLink] Registry miss for ${type}${member ? `.${member}` : ''}. Rendering code text instead of a guessed URL.`,
154
+ );
150
155
  }
156
+ } else if (indexed.status === 'unavailable') {
157
+ renderLink = false;
158
+ if (import.meta.env.DEV) {
159
+ console.warn(
160
+ `[ApiLink] ApiLink registry is unavailable for ${type}${member ? `.${member}` : ''}. Rendering code text.`,
161
+ );
162
+ }
163
+ }
151
164
  }
152
165
  ---
153
- {renderLink
154
- ? <a href={url}>{renderCode ? <code>{displayLabel}</code> : displayLabel}</a>
155
- : renderCode ? <code>{displayLabel}</code> : displayLabel}
166
+
167
+ {
168
+ renderLink ? (
169
+ <a href={url}>{renderCode ? <code>{displayLabel}</code> : displayLabel}</a>
170
+ ) : renderCode ? (
171
+ <code>{displayLabel}</code>
172
+ ) : (
173
+ displayLabel
174
+ )
175
+ }
@@ -1,13 +1,13 @@
1
1
  @use 'igniteui-theming/sass/typography' as *;
2
2
 
3
3
  a:has(code) {
4
- text-decoration: none;
5
- color: inherit;
6
-
7
- &:hover {
8
- code {
9
- color: var(--igd-accent);
10
- border-color: var(--ig-primary-100);
11
- }
12
- }
4
+ text-decoration: none;
5
+ color: inherit;
6
+
7
+ &:hover {
8
+ code {
9
+ color: var(--igd-accent);
10
+ border-color: var(--ig-primary-100);
11
+ }
12
+ }
13
13
  }
@@ -34,15 +34,15 @@ the index is unavailable, `ApiLink` renders code text and does not guess a URL.
34
34
 
35
35
  ## TypeDoc Props
36
36
 
37
- | Prop | Type | Default | Description |
38
- |------|------|---------|-------------|
39
- | `type` | `string` | *(required)* | Short symbol name without platform prefix, e.g. `"Grid"` instead of `"IgrGrid"`. |
40
- | `member` | `string` | — | Optional member name. Resolved through the generated member map when available. |
41
- | `label` | `string` | auto | Override the display text. |
42
- | `pkg` | `string` | — | Ambiguity override only. Use when the same symbol exists in multiple packages and the combined index cannot choose safely. |
43
- | `kind` | `'class' \| 'interface' \| 'enum' \| 'type' \| 'variable' \| 'function'` | auto | Optional narrowing. Usually unnecessary when the index is available. |
44
- | `prefixed` | `boolean` | `true` | Candidate-name override for symbols that are never platform-prefixed. Avoid for new docs when the index can resolve the symbol. |
45
- | `suffix` | `boolean` | `true` | Candidate-name override for symbols that never use the platform class suffix. Avoid for new docs when the index can resolve the symbol. |
37
+ | Prop | Type | Default | Description |
38
+ | ---------- | ------------------------------------------------------------------------ | ------------ | --------------------------------------------------------------------------------------------------------------------------------------- |
39
+ | `type` | `string` | _(required)_ | Short symbol name without platform prefix, e.g. `"Grid"` instead of `"IgrGrid"`. |
40
+ | `member` | `string` | — | Optional member name. Resolved through the generated member map when available. |
41
+ | `label` | `string` | auto | Override the display text. |
42
+ | `pkg` | `string` | — | Ambiguity override only. Use when the same symbol exists in multiple packages and the combined index cannot choose safely. |
43
+ | `kind` | `'class' \| 'interface' \| 'enum' \| 'type' \| 'variable' \| 'function'` | auto | Optional narrowing. Usually unnecessary when the index is available. |
44
+ | `prefixed` | `boolean` | `true` | Candidate-name override for symbols that are never platform-prefixed. Avoid for new docs when the index can resolve the symbol. |
45
+ | `suffix` | `boolean` | `true` | Candidate-name override for symbols that never use the platform class suffix. Avoid for new docs when the index can resolve the symbol. |
46
46
 
47
47
  Platform names use `PlatformContext.name`: `Angular`, `React`,
48
48
  `WebComponents`, or `Blazor`.
@@ -51,12 +51,15 @@ Platform names use `PlatformContext.name`: `Angular`, `React`,
51
51
 
52
52
  ```mdx
53
53
  {/* Let the generated index find package, kind, and exact symbol name. */}
54
+
54
55
  <ApiLink type="Grid" />
55
56
 
56
57
  {/* Member anchors are resolved from the generated member map. */}
58
+
57
59
  <ApiLink type="Grid" member="rowSelection" />
58
60
 
59
61
  {/* Use pkg only when the symbol name is ambiguous across packages. */}
62
+
60
63
  <ApiLink type="Workbook" pkg="excel" />
61
64
  ```
62
65
 
@@ -75,12 +78,12 @@ src/data/api-link-index/webcomponents/staging-latest.json
75
78
 
76
79
  Registry symbol fields are intentionally short because the files are large:
77
80
 
78
- | Field | Meaning |
79
- |-------|---------|
80
- | `p` | Package id that owns the symbol. |
81
- | `u` | Root-relative API URL path for the symbol page. |
82
- | `k` | Symbol kind, e.g. `class`, `interface`, `enum`, `type`. |
83
- | `m` | Member name to anchor map. |
81
+ | Field | Meaning |
82
+ | ----- | ------------------------------------------------------- |
83
+ | `p` | Package id that owns the symbol. |
84
+ | `u` | Root-relative API URL path for the symbol page. |
85
+ | `k` | Symbol kind, e.g. `class`, `interface`, `enum`, `type`. |
86
+ | `m` | Member name to anchor map. |
84
87
 
85
88
  When `pkg` is present, `ApiLink` uses it only as a package filter for ambiguous
86
89
  symbol names; package URLs and kinds still come from the registry.
@@ -92,16 +95,17 @@ When a registry symbol exists but the requested member does not, `ApiLink`
92
95
  renders code text instead of generating a guessed member URL.
93
96
 
94
97
  ## Sass Props
98
+
95
99
  Use `kind="sass"` for Sass API reference links. Sass links do not use the
96
100
  api-docs link index; they read their base URL from `platformContext.sassApiUrl`.
97
101
 
98
- | Prop | Type | Default | Description |
99
- |------|------|---------|-------------|
100
- | `kind` | `'sass'` | *(required)* | Enables Sass API link mode. |
101
- | `module` | `string` | — | Sass module path segment, e.g. `"animations"` or `"themes"`. |
102
- | `type` | `string` | — | Anchor fragment without `#`, e.g. `"mixin-slide-in-left"`. Omit it to link to the module page. |
103
- | `label` | `string` | auto | Override the display text. Defaults to `type`, then `module`, then an empty string. |
104
- | `code` | `boolean` | `true` | Wrap the label in `<code>`. Set `false` for prose labels. |
102
+ | Prop | Type | Default | Description |
103
+ | -------- | --------- | ------------ | ---------------------------------------------------------------------------------------------- |
104
+ | `kind` | `'sass'` | _(required)_ | Enables Sass API link mode. |
105
+ | `module` | `string` | — | Sass module path segment, e.g. `"animations"` or `"themes"`. |
106
+ | `type` | `string` | — | Anchor fragment without `#`, e.g. `"mixin-slide-in-left"`. Omit it to link to the module page. |
107
+ | `label` | `string` | auto | Override the display text. Defaults to `type`, then `module`, then an empty string. |
108
+ | `code` | `boolean` | `true` | Wrap the label in `<code>`. Set `false` for prose labels. |
105
109
 
106
110
  ```mdx
107
111
  <ApiLink kind="sass" module="animations" label="animations Sass module" code={false} />