@capra/core 1.8.2 → 1.9.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.
Files changed (49) hide show
  1. package/dist/index.cjs +264 -23
  2. package/dist/index.d.cts +119 -17
  3. package/dist/index.d.mts +119 -17
  4. package/dist/index.mjs +265 -26
  5. package/dist/style.css +186 -25
  6. package/docs/core-alert--usage.md +2 -0
  7. package/docs/core-anchor--usage.md +2 -0
  8. package/docs/core-autocompletefield--usage.md +2 -0
  9. package/docs/core-badge--usage.md +2 -0
  10. package/docs/core-breadcrumbs--usage.md +2 -0
  11. package/docs/core-button--usage.md +2 -0
  12. package/docs/core-buttonlink--usage.md +2 -0
  13. package/docs/core-checkbox--usage.md +2 -0
  14. package/docs/core-collapse--usage.md +2 -0
  15. package/docs/core-datepickerfield--usage.md +2 -0
  16. package/docs/core-daterangepickerfield--usage.md +2 -0
  17. package/docs/core-divider--usage.md +2 -0
  18. package/docs/core-emptystate--usage.md +2 -0
  19. package/docs/core-helpertext--usage.md +2 -0
  20. package/docs/core-iconbutton--usage.md +2 -0
  21. package/docs/core-inputrow--usage.md +2 -0
  22. package/docs/core-label--usage.md +2 -0
  23. package/docs/core-link--usage.md +2 -0
  24. package/docs/core-listitem--usage.md +2 -0
  25. package/docs/core-menu--usage.md +2 -0
  26. package/docs/core-modal--usage.md +2 -0
  27. package/docs/core-pagination--usage.md +2 -0
  28. package/docs/core-pill--usage.md +2 -0
  29. package/docs/core-radio--usage.md +2 -0
  30. package/docs/core-radiogroup--usage.md +2 -0
  31. package/docs/core-radiotile--usage.md +2 -0
  32. package/docs/core-ribbon--usage.md +2 -0
  33. package/docs/core-skeleton--usage.md +1 -2
  34. package/docs/core-skeletongroup--usage.md +0 -1
  35. package/docs/core-spinner--usage.md +2 -0
  36. package/docs/core-switch--usage.md +2 -0
  37. package/docs/core-tabnav--usage.md +2 -0
  38. package/docs/core-tag--usage.md +2 -0
  39. package/docs/core-text--usage.md +2 -0
  40. package/docs/core-textarea--usage.md +2 -0
  41. package/docs/core-textinput--usage.md +2 -0
  42. package/docs/core-tooltip--usage.md +2 -0
  43. package/docs/core-topnav--usage.md +2 -0
  44. package/docs/core-tree--design.md +31 -0
  45. package/docs/core-tree--usage.md +102 -0
  46. package/docs/core-verticalnavigation--usage.md +2 -0
  47. package/docs/history-changelogs-capra-core--docs.md +23 -0
  48. package/docs/index.md +2 -0
  49. package/package.json +7 -7
package/dist/style.css CHANGED
@@ -679,72 +679,67 @@
679
679
  transform: translate(50%, -50%);
680
680
  }
681
681
  }
682
- .capra-ListItem-module-VUh15W-listItem {
683
- color: var(--cds2-color-foreground-default);
684
- font: var(--cds2-typography-body-md-normal);
682
+ .capra-ListItem-module-QN6vFW-__listItem-layout {
685
683
  padding: var(--cds2-spacing-sm) var(--cds2-spacing-md);
686
684
  gap: var(--cds2-spacing-md);
687
685
  grid-template-columns: auto 1fr auto;
688
- grid-template-areas: "capra-ListItem-module-VUh15W-leading capra-ListItem-module-VUh15W-content capra-ListItem-module-VUh15W-trailing";
689
- width: 100%;
686
+ grid-template-areas: "capra-ListItem-module-QN6vFW-leading capra-ListItem-module-QN6vFW-content capra-ListItem-module-QN6vFW-trailing";
690
687
  display: grid;
691
688
  }
692
689
 
693
- .capra-ListItem-module-VUh15W-slots:not(:empty):not([data-trailing="true"]) {
694
- margin-inline-end: var(--cds-spacing-md);
695
- }
696
-
697
- .capra-ListItem-module-VUh15W-slots[data-trailing="true"]:not(:empty) {
698
- margin-inline-start: var(--cds-spacing-md);
690
+ .capra-ListItem-module-QN6vFW-listItem {
691
+ color: var(--cds2-color-foreground-default);
692
+ font: var(--cds2-typography-body-md-normal);
693
+ width: 100%;
699
694
  }
700
695
 
701
- .capra-ListItem-module-VUh15W-slots {
696
+ .capra-ListItem-module-QN6vFW-slots {
702
697
  font: var(--cds2-typography-body-md-normal);
703
698
  align-items: center;
704
699
  gap: var(--cds2-spacing-md);
705
700
  min-height: var(--cds2-dimension-component-sm);
706
- grid-column: capra-ListItem-module-VUh15W-leading;
701
+ grid-column: capra-ListItem-module-QN6vFW-leading;
707
702
  display: flex;
708
703
 
709
704
  &[data-trailing="true"] {
710
- grid-column: capra-ListItem-module-VUh15W-trailing;
705
+ grid-column: capra-ListItem-module-QN6vFW-trailing;
711
706
  }
712
707
  }
713
708
 
714
- .capra-ListItem-module-VUh15W-slot {
709
+ .capra-ListItem-module-QN6vFW-slot {
715
710
  min-width: var(--cds2-dimension-component-xs);
716
711
  justify-content: center;
717
712
  align-items: center;
718
713
  display: flex;
719
714
  }
720
715
 
721
- .capra-ListItem-module-VUh15W-content {
716
+ .capra-ListItem-module-QN6vFW-content {
722
717
  column-gap: var(--cds2-spacing-md);
723
- grid-template: "capra-ListItem-module-VUh15W-label capra-ListItem-module-VUh15W-suffix"
724
- "capra-ListItem-module-VUh15W-description capra-ListItem-module-VUh15W-description"
718
+ grid-template: "capra-ListItem-module-QN6vFW-label capra-ListItem-module-QN6vFW-suffix"
719
+ "capra-ListItem-module-QN6vFW-description capra-ListItem-module-QN6vFW-description"
725
720
  / 1fr auto;
726
- grid-column: capra-ListItem-module-VUh15W-content;
721
+ grid-column: capra-ListItem-module-QN6vFW-content;
727
722
  display: grid;
728
723
  }
729
724
 
730
- .capra-ListItem-module-VUh15W-label {
725
+ .capra-ListItem-module-QN6vFW-label {
731
726
  color: var(--cds2-color-foreground-default);
732
727
  font: var(--cds2-typography-body-md-normal);
733
- grid-area: capra-ListItem-module-VUh15W-label;
728
+ grid-area: capra-ListItem-module-QN6vFW-label;
734
729
  overflow: hidden;
735
730
  }
736
731
 
737
- .capra-ListItem-module-VUh15W-suffix {
732
+ .capra-ListItem-module-QN6vFW-suffix {
738
733
  color: var(--cds2-color-foreground-subtle);
739
734
  font: var(--cds2-typography-body-sm-normal);
740
- grid-area: capra-ListItem-module-VUh15W-suffix;
735
+ grid-area: capra-ListItem-module-QN6vFW-suffix;
741
736
  justify-self: end;
742
737
  }
743
738
 
744
- .capra-ListItem-module-VUh15W-description {
739
+ .capra-ListItem-module-QN6vFW-description {
745
740
  color: var(--cds2-color-foreground-subtle);
746
741
  font: var(--cds2-typography-body-sm-normal);
747
- grid-area: capra-ListItem-module-VUh15W-description;
742
+ grid-area: capra-ListItem-module-QN6vFW-description;
748
743
  }
749
744
  .capra-Pill-module-xa3pfa-pill {
750
745
  align-items: center;
@@ -4129,3 +4124,169 @@ input:disabled + .capra-Radio-module-ZI7rzq-inner:after {
4129
4124
  gap: var(--cds2-spacing-md);
4130
4125
  display: inline-flex;
4131
4126
  }
4127
+ .capra-ListItem-module-QN6vFW-__listItem-layout {
4128
+ padding: var(--cds2-spacing-sm) var(--cds2-spacing-md);
4129
+ gap: var(--cds2-spacing-md);
4130
+ grid-template-columns: auto 1fr auto;
4131
+ grid-template-areas: "capra-ListItem-module-QN6vFW-leading capra-ListItem-module-QN6vFW-content capra-ListItem-module-QN6vFW-trailing";
4132
+ display: grid;
4133
+ }
4134
+
4135
+ .capra-ListItem-module-QN6vFW-listItem {
4136
+ color: var(--cds2-color-foreground-default);
4137
+ font: var(--cds2-typography-body-md-normal);
4138
+ width: 100%;
4139
+ }
4140
+
4141
+ .capra-ListItem-module-QN6vFW-slots {
4142
+ font: var(--cds2-typography-body-md-normal);
4143
+ align-items: center;
4144
+ gap: var(--cds2-spacing-md);
4145
+ min-height: var(--cds2-dimension-component-sm);
4146
+ grid-column: capra-ListItem-module-QN6vFW-leading;
4147
+ display: flex;
4148
+
4149
+ &[data-trailing="true"] {
4150
+ grid-column: capra-ListItem-module-QN6vFW-trailing;
4151
+ }
4152
+ }
4153
+
4154
+ .capra-ListItem-module-QN6vFW-slot {
4155
+ min-width: var(--cds2-dimension-component-xs);
4156
+ justify-content: center;
4157
+ align-items: center;
4158
+ display: flex;
4159
+ }
4160
+
4161
+ .capra-ListItem-module-QN6vFW-content {
4162
+ column-gap: var(--cds2-spacing-md);
4163
+ grid-template: "capra-ListItem-module-QN6vFW-label capra-ListItem-module-QN6vFW-suffix"
4164
+ "capra-ListItem-module-QN6vFW-description capra-ListItem-module-QN6vFW-description"
4165
+ / 1fr auto;
4166
+ grid-column: capra-ListItem-module-QN6vFW-content;
4167
+ display: grid;
4168
+ }
4169
+
4170
+ .capra-ListItem-module-QN6vFW-label {
4171
+ color: var(--cds2-color-foreground-default);
4172
+ font: var(--cds2-typography-body-md-normal);
4173
+ grid-area: capra-ListItem-module-QN6vFW-label;
4174
+ overflow: hidden;
4175
+ }
4176
+
4177
+ .capra-ListItem-module-QN6vFW-suffix {
4178
+ color: var(--cds2-color-foreground-subtle);
4179
+ font: var(--cds2-typography-body-sm-normal);
4180
+ grid-area: capra-ListItem-module-QN6vFW-suffix;
4181
+ justify-self: end;
4182
+ }
4183
+
4184
+ .capra-ListItem-module-QN6vFW-description {
4185
+ color: var(--cds2-color-foreground-subtle);
4186
+ font: var(--cds2-typography-body-sm-normal);
4187
+ grid-area: capra-ListItem-module-QN6vFW-description;
4188
+ }
4189
+
4190
+ .capra-Tree-module--hXpBa-root {
4191
+ width: 100%;
4192
+ padding: var(--cds2-spacing-xs);
4193
+ }
4194
+
4195
+ .capra-Tree-module--hXpBa-item {
4196
+ border-radius: var(--cds2-radius-md);
4197
+ color: var(--cds2-color-foreground-default);
4198
+ min-height: var(--cds2-dimension-component-sm);
4199
+
4200
+ &[data-hovered="true"]:not([data-disabled="true"]) {
4201
+ background-color: var(--cds2-color-background-accent-hover);
4202
+ }
4203
+
4204
+ &[data-focus-visible="true"] {
4205
+ outline: var(--cds2-border-focus);
4206
+ outline-offset: var(--cds2-spacing-xs);
4207
+ }
4208
+
4209
+ &[data-disabled="true"] {
4210
+ color: var(--cds2-color-foreground-disabled);
4211
+ cursor: not-allowed;
4212
+
4213
+ & .capra-Tree-module--hXpBa-itemLabel, & .capra-Tree-module--hXpBa-itemSuffix, & .capra-Tree-module--hXpBa-chevronButton {
4214
+ color: var(--cds2-color-foreground-disabled);
4215
+ }
4216
+ }
4217
+ }
4218
+
4219
+ .capra-Tree-module--hXpBa-indentSpacer {
4220
+ flex: 0 0 var(--cds2-dimension-component-xs);
4221
+ height: var(--cds2-dimension-component-md);
4222
+ width: var(--cds2-dimension-component-xs);
4223
+ margin-block: calc(-1 * var(--cds2-spacing-sm));
4224
+ display: block;
4225
+ position: relative;
4226
+
4227
+ &:before {
4228
+ content: "";
4229
+ border-right: var(--cds2-border-default);
4230
+ z-index: -1;
4231
+ height: 100%;
4232
+ position: absolute;
4233
+ top: 0;
4234
+ left: calc(50% - .5px);
4235
+ }
4236
+ }
4237
+
4238
+ .capra-Tree-module--hXpBa-chevronButton {
4239
+ all: unset;
4240
+ border-radius: var(--cds2-radius-md);
4241
+ cursor: pointer;
4242
+ flex: 0 0 var(--cds2-dimension-component-sm);
4243
+ height: var(--cds2-dimension-component-sm);
4244
+ width: var(--cds2-dimension-component-sm);
4245
+ margin: calc(-1 * var(--cds2-spacing-sm));
4246
+ justify-content: center;
4247
+ align-items: center;
4248
+ display: inline-flex;
4249
+
4250
+ &[data-focus-visible="true"] {
4251
+ outline: var(--cds2-border-focus);
4252
+ outline-offset: var(--cds2-spacing-xs);
4253
+ }
4254
+ }
4255
+
4256
+ .capra-Tree-module--hXpBa-chevronIcon {
4257
+ transition: transform var(--cds2-motion-duration-medium-2) ease;
4258
+ justify-content: center;
4259
+ align-items: center;
4260
+ display: inline-flex;
4261
+ }
4262
+
4263
+ .capra-Tree-module--hXpBa-item[data-expanded="true"] .capra-Tree-module--hXpBa-chevronIcon {
4264
+ transform: rotate(90deg);
4265
+ }
4266
+
4267
+ .capra-Tree-module--hXpBa-selectionCheckbox {
4268
+ flex: 0 0 var(--cds2-dimension-component-xs);
4269
+ justify-content: center;
4270
+ align-items: center;
4271
+ display: inline-flex;
4272
+ }
4273
+
4274
+ .capra-Tree-module--hXpBa-itemContent {
4275
+ grid-template-areas: "capra-Tree-module--hXpBa-label capra-Tree-module--hXpBa-suffix";
4276
+ grid-template-rows: unset;
4277
+ align-items: center;
4278
+ }
4279
+
4280
+ .capra-Tree-module--hXpBa-itemLabel {
4281
+ color: var(--cds2-color-foreground-default);
4282
+ }
4283
+
4284
+ .capra-Tree-module--hXpBa-itemSuffix {
4285
+ color: var(--cds2-color-foreground-subtle);
4286
+ }
4287
+
4288
+ @media (prefers-reduced-motion: reduce) {
4289
+ .capra-Tree-module--hXpBa-chevronIcon {
4290
+ transition: none;
4291
+ }
4292
+ }
@@ -10,4 +10,6 @@ Alerts are used to communicate important information to the user.
10
10
  | `children` | `React.ReactNode` | Yes | `--` | The description of the alert. This is required.<br><br>@required |
11
11
  | `action` | `{ label: string; onClick: (e: React.MouseEvent<HTMLButtonElement>) => void; } \| React.ReactElement` | No | `--` | The configuration of the action button. The object must contain a label displayed on the button and an onClick callback function. This is optional.<br><br>When the object is not provided, the alert will not render the action button. |
12
12
  | `onDismiss` | `true \| (() => void)` | No | `--` | Optional function to call when the user dismisses the alert.<br><br>If this is not provided, the alert will not render the dismiss button.<br><br>Alerts with `appearance="danger"` cannot be dismissed and will not render the dismiss button.<br><br>**Integration note:** while the `Alert` will handle its own dismissal, this is non-persistent.<br>Persistent dismissal should be handled by the parent component. |
13
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
14
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
13
15
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
@@ -7,6 +7,8 @@
7
7
  | `isActive` | `boolean` | No | `--` | Whether the anchor is active. |
8
8
  | `isDisabled` | `boolean` | No | `--` | Whether the anchor is disabled. |
9
9
  | `as` | `As` | No | `--` | The underlying element rendered by the anchor. Defaults to `a`. |
10
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
11
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
10
12
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
11
13
 
12
14
  ## Usage
@@ -12,6 +12,8 @@ AutocompleteField combines a text field with a suggestions list. Consumers can s
12
12
  | `items` | `AutocompleteItem[]` | No | `--` | The items to display in the dropdown. |
13
13
  | `value` | `AutocompleteItem['value']` | No | `--` | The value of the input. |
14
14
  | `shouldAutoSizeDropdown` | `boolean` | No | `--` | Whether to automatically size the dropdown to the width of the input. Defaults to `true` |
15
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
16
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
15
17
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
16
18
  | `helperText` | `string` | No | `--` | Helper text below the field. Replaced by error message when status is error. Use for requirements, disclaimers. |
17
19
  | `label` | `string` | No | `--` | Label for the field. Required for accessibility; use aria-label if another element acts as label. |
@@ -9,5 +9,7 @@ Badges display an indicator/counter on an associated component.
9
9
  | `count` | `number` | No | 0 | The number to display in the badge. Default is 0. |
10
10
  | `showZero` | `boolean` | No | false | Whether to display the badge when the count is zero. Default is false. |
11
11
  | `overflowCount` | `number` | No | 99 | The number to display in the badge when the count is greater than the overflow count. Default is 99. |
12
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
13
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
12
14
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
13
15
  | `aria-live` | `React.AriaAttributes['aria-live']` | No | `--` | `--` |
@@ -10,6 +10,8 @@ The `Breadcrumbs` component is partially implemented and does not yet support dr
10
10
 
11
11
  | Prop | Type | Required | Default | Description |
12
12
  | --- | --- | --- | --- | --- |
13
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
14
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
13
15
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
14
16
  | `aria-label` | `string` | No | 'Breadcrumb' | Accessible name for the breadcrumb navigation landmark.<br>Defaults to `"Breadcrumb"`. |
15
17
  | `size` | `string` | No | 'md' | `--` |
@@ -14,4 +14,6 @@ Primary interactive element displaying text and supporting leading and trailing
14
14
  | `trailingIcon` | `SvgIcon` | No | `--` | Icon to display after the button text. |
15
15
  | `block` | `boolean` | No | `--` | Whether to display the button as a block-level (full-width) component. Defaults to `false`. |
16
16
  | `onClick` | `React.ComponentProps<'button'>['onClick']` | No | `--` | Click handler for the button. |
17
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
18
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
17
19
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
@@ -21,4 +21,6 @@ Primary interactive element displaying text and supporting leading and trailing
21
21
  | `download` | `boolean \| string` | No | `--` | Causes the browser to download the linked URL. A string may be provided to suggest a file name. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#download). |
22
22
  | `referrerPolicy` | `HTMLAttributeReferrerPolicy` | No | `--` | How much of the referrer to send when following the link. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#referrerpolicy). |
23
23
  | `routerOptions` | `unknown` | No | `--` | Options for the configured client side router. |
24
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
25
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
24
26
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
@@ -8,6 +8,8 @@ Checkbox component for capturing boolean user input. Supports controlled and unc
8
8
  | `checked` | `boolean` | No | `--` | Controlled checked state. Use with onChange for controlled component. |
9
9
  | `defaultChecked` | `boolean` | No | `--` | Default checked state for uncontrolled component. |
10
10
  | `children` | `string \| React.ReactNode` | No | `--` | The label for the checkbox. |
11
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
12
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
11
13
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
12
14
 
13
15
  ## Integration Notes
@@ -4,6 +4,8 @@ A collapsible disclosure section with an expandable header and panel. Pass **`ti
4
4
 
5
5
  | Prop | Type | Required | Default | Description |
6
6
  | --- | --- | --- | --- | --- |
7
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
8
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
7
9
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
8
10
  | `title` | `string` | Yes | `--` | Plain string title rendered in the disclosure heading. |
9
11
  | `headerTrailingContentSlot` | `React.ReactNode` | No | `--` | Trailing header region for actions (switches, buttons, etc.). |
@@ -6,6 +6,8 @@
6
6
  | `label` | `string` | No | `--` | Label for the field. Required for accessibility; use aria-label if another element acts as label. |
7
7
  | `layout` | `'vertical' \| 'horizontal'` | No | `--` | Label and field layout: vertical (label above) or horizontal (label on leading side). Prefer vertical; use horizontal when space is limited. |
8
8
  | `granularity` | `'day' \| 'second'` | No | `--` | Smallest date/time unit shown in the field. Only `day` and `second` are supported. |
9
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
10
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
9
11
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
10
12
  | `canClear` | `boolean` | No | `--` | When true, shows a clear control to the left of the calendar button while the field has a value. |
11
13
  | `disabled` | `boolean` | No | `--` | Disables the field. |
@@ -7,6 +7,8 @@
7
7
  | `layout` | `'vertical' \| 'horizontal'` | No | `--` | Label and field layout: vertical (label above) or horizontal (label on leading side). Prefer vertical; use horizontal when space is limited. |
8
8
  | `placeholder` | `unknown` | No | `--` | Placeholders for empty start and end, shown with a swap icon between them when the group is not focus-within. |
9
9
  | `granularity` | `'day' \| 'second'` | No | `--` | Smallest date/time unit shown in the fields. Only `day` and `second` are supported. |
10
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
11
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
10
12
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
11
13
  | `canClear` | `boolean` | No | `--` | When true, shows a clear control to the left of the calendar button while the field has a value. |
12
14
  | `disabled` | `boolean` | No | `--` | Disables the field. |
@@ -4,5 +4,7 @@ Divider separates and groups content. Use horizontal dividers between sections;
4
4
 
5
5
  | Prop | Type | Required | Default | Description |
6
6
  | --- | --- | --- | --- | --- |
7
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
8
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
7
9
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
8
10
  | `type` | `string` | No | 'horizontal' | `--` |
@@ -10,4 +10,6 @@ The EmptyState component is used to display a message when there is no data to d
10
10
  | `title` | `string` | Yes | `--` | The title to display in the empty state. |
11
11
  | `description` | `string` | No | `--` | The description to display in the empty state. Please do not skip this property without a good reason. |
12
12
  | `children` | `React.ReactNode` | No | `--` | Generic use for adding a button or other action elements below the description. |
13
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
14
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
13
15
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
@@ -8,4 +8,6 @@ Helper text for inputs.
8
8
  | `children` | `string` | No | `--` | Main text. Use for hints, requirements, disclaimers, etc. |
9
9
  | `countText` | `string` | No | `--` | Text to display on the right side of the helper text. Is marked as a live content area via `aria-live`. |
10
10
  | `disabled` | `boolean` | No | `--` | Whether the input the helper text applies to is disabled. |
11
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
12
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
11
13
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
@@ -12,4 +12,6 @@ Interactive element displaying a single icon.
12
12
  | `disabled` | `boolean` | No | false | Whether the button is disabled. |
13
13
  | `pending` | `boolean` | No | false | Whether the button is in a pending state. |
14
14
  | `onClick` | `React.ComponentProps<'button'>['onClick']` | No | `--` | Click handler for the button. |
15
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
16
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
15
17
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
@@ -3,4 +3,6 @@
3
3
  | Prop | Type | Required | Default | Description |
4
4
  | --- | --- | --- | --- | --- |
5
5
  | `children` | `React.ReactNode` | No | `--` | `--` |
6
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
7
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
6
8
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
@@ -7,6 +7,8 @@ Label text and optional required indicator for form fields, aligned with Capra f
7
7
  | `children` | `string` | No | `--` | Text to display in the label. |
8
8
  | `required` | `boolean` | No | `--` | Whether the field the label is labeling is required (shows asterisk after label). |
9
9
  | `trailingSlot` | `React.ReactNode` | No | `--` | Content after the label text. |
10
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
11
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
10
12
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
11
13
 
12
14
  ## React Aria
@@ -13,4 +13,6 @@ Links are navigational elements that take users to a new page.
13
13
  | `download` | `boolean \| string` | No | `--` | Causes the browser to download the linked URL. A string may be provided to suggest a file name. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#download). |
14
14
  | `referrerPolicy` | `HTMLAttributeReferrerPolicy` | No | `--` | How much of the referrer to send when following the link. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#referrerpolicy). |
15
15
  | `routerOptions` | `unknown` | No | `--` | Options for the configured client side router. |
16
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
17
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
16
18
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
@@ -3,4 +3,6 @@
3
3
  | Prop | Type | Required | Default | Description |
4
4
  | --- | --- | --- | --- | --- |
5
5
  | `as` | `As` | No | `--` | `--` |
6
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
7
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
6
8
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
@@ -2,6 +2,8 @@
2
2
 
3
3
  | Prop | Type | Required | Default | Description |
4
4
  | --- | --- | --- | --- | --- |
5
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
6
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
5
7
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
6
8
  | `trigger` | `React.ReactElement` | Yes | `--` | Single element that toggles the menu (e.g. button). Rendered as the menu trigger; must forward refs to a focusable DOM node (wrapped with React Aria {@link Pressable} internally). |
7
9
  | `children` | `React.ReactNode` | No | `--` | Menu content. Use Menu.Item, Menu.Section, Menu.Header, Menu.Divider. |
@@ -4,6 +4,8 @@
4
4
 
5
5
  | Prop | Type | Required | Default | Description |
6
6
  | --- | --- | --- | --- | --- |
7
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
8
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
7
9
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
8
10
  | `size` | `string` | No | 'md' | `--` |
9
11
  | `isDismissible` | `boolean` | No | true | `--` |
@@ -10,4 +10,6 @@ Pagination component for navigating through paged content. Renders prev/next but
10
10
  | `onChange` | `(page: number, pageSize: number) => void` | No | `--` | Callback when page changes. |
11
11
  | `disabled` | `boolean` | No | false | Whether the pagination is disabled. |
12
12
  | `aria-label` | `string` | Yes | `--` | Accessible name for the navigation. Required for accessibility. |
13
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
14
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
13
15
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
@@ -7,4 +7,6 @@
7
7
  | `variant` | `'bold' \| 'muted' \| 'outline'` | No | 'bold' | A variant to apply to the pill. Only applies when the appearance is not 'default'.<br><br><ul><br> <li><br> 'bold' - Can be used for isolated pills, such as when in the header of an object details page.<br> Use bold pills with caution, since they can easily distract from the primary content.<br> Be cautious with multiple bold pills on a single page, and absolutely avoid multiple bold pills in close proximity.<br> </li><br> <li>'muted' - Used when pills are inline with other content, such as table cells.</li><br></ul><br><br>@default 'bold' |
8
8
  | `appearance` | `'default' \| 'info' \| 'danger' \| 'warning' \| 'success' \| 'highlight'` | No | 'default' | The appearance of the pill, which determines its color and severity.<br><br><ul><br> <li>'info' - Information pills communicate general information or an important property.</li><br> <li>'danger' - Danger pills communicate problems that require action to be resolved.</li><br> <li>'warning' - Warning pills can communicate information that is time-sensitive, or trending towards a danger state.</li><br> <li>'success' - Success pills communicate successful states or completed actions.</li><br> <li>'highlight' - Highlight pills bring special attention to metadata without communicating status.</li><br></ul><br><br>@default 'default' |
9
9
  | `inline` | `boolean` | No | false | Whether to render the pill as an inline element. This is useful when the pill is used in a heading or other inline context.<br><br>By default, the pill will be rendered as a block element.<br><br>@default false |
10
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
11
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
10
12
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
@@ -5,4 +5,6 @@ A presentational radio button component. You will typically use this component w
5
5
  | Prop | Type | Required | Default | Description |
6
6
  | --- | --- | --- | --- | --- |
7
7
  | `value` | `string \| null` | Yes | `--` | The value of the radio button. |
8
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
9
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
8
10
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
@@ -9,4 +9,6 @@ A control wrapper for a group of radio buttons.
9
9
  | `disabled` | `boolean` | No | `--` | Whether the radios in the group are disabled |
10
10
  | `value` | `string \| null` | No | `--` | The current value of the radio group |
11
11
  | `layout` | `'vertical' \| 'horizontal'` | No | 'horizontal' | Whether the radio buttons should be displayed vertically or horizontally<br>@default 'horizontal' |
12
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
13
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
12
14
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
@@ -7,4 +7,6 @@ A card variation of a radio button component. You will typically use this compon
7
7
  | `description` | `React.ReactNode` | No | `--` | Optional description text displayed below the main label in the tile. |
8
8
  | `children` | `React.ReactNode` | Yes | `--` | The main label for the tile. |
9
9
  | `icon` | `React.ReactNode` | No | `--` | Optional icon to display in the tile. |
10
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
11
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
10
12
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
@@ -4,6 +4,8 @@ A ribbon component used to highlight new features that exist in a 'preview' stat
4
4
 
5
5
  | Prop | Type | Required | Default | Description |
6
6
  | --- | --- | --- | --- | --- |
7
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
8
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
7
9
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
8
10
  | `children` | `string` | Yes | `--` | The label text to display. |
9
11
  | `color` | `(typeof ribbonColors)[number]` | No | 'teal' | The color of the ribbon. One of the predefined colors (teal, green, purple).<br>For custom colors, use FORCE__className with CSS that sets --_ribbon-background-color.<br>@default 'teal' |
@@ -9,5 +9,4 @@ A skeleton is a graphical placeholder, reserving physical space in the page for
9
9
  | `paragraph` | `SkeletonParagraphProps \| boolean` | No | `--` | Show paragraph placeholder.<br>@default true |
10
10
  | `round` | `boolean` | No | `--` | Show paragraph and title radius when true.<br>@default false |
11
11
  | `active` | `boolean` | No | `--` | Show animation effect. Respects prefers-reduced-motion.<br>@default false |
12
- | `children` | `React.ReactNode` | No | `--` | When set together with `loading`: if `loading` is false, only `children`<br>are rendered (no skeleton). If `loading` is true, the skeleton is shown instead — for preset<br>layouts (title and/or paragraph) children are not mounted while loading; in element mode<br>(`title={false}` and `paragraph={false}`) children render inside the placeholder while loading. |
13
- | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
12
+ | `children` | `React.ReactNode` | No | `--` | When set together with `loading`: if `loading` is false, only `children`<br>are rendered (no skeleton). If `loading` is true, the skeleton is shown instead — for preset<br>layouts (title and/or paragraph) children are not mounted while loading; in element mode<br>(`title={false}` and `paragraph={false}`) children render inside the placeholder while loading. |
@@ -5,6 +5,5 @@
5
5
  | `style` | `React.CSSProperties` | No | `--` | `--` |
6
6
  | `size` | `keyof typeof SKELETON_SIZE` | No | `--` | Preset dimensions from `dimension.component.*`; use `style` for custom width/height. |
7
7
  | `active` | `boolean` | No | `--` | Show animation effect. @default false |
8
- | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
9
8
  | `block` | `boolean` | No | `--` | `--` |
10
9
  | `shape` | `'circle' \| 'round' \| 'square' \| 'default'` | No | `--` | `--` |
@@ -8,4 +8,6 @@ The Spinner component is used to display a loading state. It can be used in two
8
8
  | `title` | `string` | No | `--` | (optional) The title to display in the Spinner. |
9
9
  | `children` | `React.ReactNode` | No | `--` | The content to display inside the Spinner. When provided, Spinner acts as a wrapper with overlay. |
10
10
  | `isPending` | `boolean` | No | `--` | Whether the Spinner is visible. Only used when children are provided. @default true |
11
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
12
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
11
13
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
@@ -5,4 +5,6 @@
5
5
  | Prop | Type | Required | Default | Description |
6
6
  | --- | --- | --- | --- | --- |
7
7
  | `size` | `'sm' \| 'md'` | No | `--` | `--` |
8
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
9
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
8
10
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
@@ -4,6 +4,8 @@ TabNav provides a horizontal or vertical navigation styled as tabs. Tab items ar
4
4
 
5
5
  | Prop | Type | Required | Default | Description |
6
6
  | --- | --- | --- | --- | --- |
7
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
8
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
7
9
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
8
10
  | `activeKey` | `string` | No | `--` | Key of the currently active tab (for visual styling). Typically derived from the current URL. |
9
11
  | `onTabClick` | `(key: string, event: React.MouseEvent) => void` | No | `--` | Callback when a tab link is clicked (before navigation). |
@@ -9,4 +9,6 @@ A tag component for displaying a label and an optional icon.
9
9
  | `children` | `string` | Yes | `--` | The label text to display in the tag. |
10
10
  | `size` | `(typeof tagSizes)[number]` | No | 'md' | The size of the tag. Defaults to `md`. |
11
11
  | `onDelete` | `() => void` | No | `--` | The callback function for when the user clicks the delete button. |
12
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
13
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
12
14
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
@@ -7,4 +7,6 @@ Component for displaying text. The visual display can be controlled via `variant
7
7
  | `variant` | `(typeof variants)[number]` | No | `--` | The text style variant. Defaults to `body`. |
8
8
  | `color` | `Color \| 'inherit'` | No | `--` | The text foreground color. Can be a theme color or inherited from the environment. Defaults to `inherit`.<br>@default inherit |
9
9
  | `as` | `As` | No | `--` | The underlying element rendered by the component. Defaults to `span`. |
10
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
11
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
10
12
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
@@ -12,6 +12,8 @@ TextArea component for multi-line text entry.
12
12
  | `helperText` | `string` | No | `--` | Helper text below the field. Replaced by error message when status is error. Use for requirements, disclaimers. |
13
13
  | `label` | `string` | No | `--` | Label for the field. Required for accessibility; use aria-label if another element acts as label. |
14
14
  | `layout` | `'vertical' \| 'horizontal'` | No | `--` | Label and field layout: vertical (label above) or horizontal (label on leading side). Prefer vertical; use horizontal when space is limited. |
15
+ | `className` | `never` | No | `--` | Use `FORCE__className` instead. |
16
+ | `style` | `never` | No | `--` | Inline styles are not supported; use component props or `FORCE__className`. |
15
17
  | `FORCE__className` | `string` | No | `--` | 🚨 This prop is meant to be an escape hatch. 🚨<br><br>If the desired style cannot be achieved using component props, use this as a last resort. The inner workings of Capra components are implementation details and this escape hatch gives one access to those implementation details. We cannot make any guarantees that styles will applied correctly across version updates. Please use it responsibly.<br><br>Add a CSS class to the component. |
16
18
 
17
19
  Use `InputField` with `input={TextArea}` for label above the field, helper text, character count, and validation