fix(custom-widgets): finish v2 hardening
This commit is contained in:
97 files changed
+2833
-12393
No files matched your search
@@ -16,16 +16,19 @@ When connected to Homarr, retrieve the live widget schema and component catalog
|
||||
|
||||
For offline authoring, read these installed, release-matched references in order:
|
||||
|
||||
1. [Schema](references/schema.md)
|
||||
2. [JSX runtime](references/runtime.md)
|
||||
3. [Security boundary](references/security.md)
|
||||
4. [Component catalog](references/components.md)
|
||||
5. [Mantine Core](references/mantine-core.md)
|
||||
6. [Mantine Dates](references/mantine-dates.md)
|
||||
7. [Mantine Charts](references/mantine-charts.md)
|
||||
8. [Homarr components](references/homarr-components.md)
|
||||
1. [Schema guide](references/schema.md)
|
||||
2. [Canonical widget JSON Schema](references/widget-schema.json)
|
||||
3. [JSX runtime](references/runtime.md)
|
||||
4. [Security boundary](references/security.md)
|
||||
5. [Component catalog guide](references/components.md)
|
||||
6. [Canonical component catalog](references/component-catalog.json)
|
||||
7. [Canonical examples](references/examples.json)
|
||||
8. [Official Mantine LLM index](references/mantine-core.md)
|
||||
9. [Official Mantine Dates guide](references/mantine-dates.md)
|
||||
10. [Mantine Charts links](references/mantine-charts.md)
|
||||
11. [Homarr components](references/homarr-components.md)
|
||||
|
||||
Together, this file and those references are the complete offline authoring bundle for the matching Homarr release. Do not require MCP tools, repository access, or external component documentation to produce a best-effort widget. If live metadata is available, prefer it over the installed static bundle.
|
||||
Together, this file and its references are the complete offline authoring bundle for the matching Homarr release. The JSON catalog contains the exact enabled component names, prop metadata, bindings, blocked capabilities, and versions. If live metadata is available, prefer it because it reflects the installed Homarr and Mantine versions.
|
||||
|
||||
## Authoring workflow
|
||||
|
||||
@@ -40,6 +43,7 @@ Together, this file and those references are the complete offline authoring bund
|
||||
- Use inline sources, named requests, definition-owned options, temporary bound inputs, and one safe JSX template.
|
||||
- Use `kind`, not the HTTP method, to distinguish reads from user-triggered actions.
|
||||
- Give every declared request parameter an explicit source. Load queries use `optionsBinding` with an option reference or primitive literal; manual queries and actions receive values only from the invoking component's `params` prop. Never infer bindings from matching names.
|
||||
- Treat `status.<requestId>` as `{ loading, ok, status, statusText, error }`. Never compare it with `"loading"`, `"success"`, or `"error"`; check `status.list?.loading`, `status.list?.ok === false`, or `status.list?.ok === true`.
|
||||
- Never put a credential in JSX, options, headers, URLs, examples, exports, logs, or chat output.
|
||||
- Use declarative `bind` controls and Homarr request components. Controlled collection callbacks, zero-argument derived-value IIFEs, and the `RecursiveList` child template may use the restricted safe-block grammar documented in the runtime reference. Never emit imports, hooks, refs, raw callback props, browser requests, or arbitrary JavaScript.
|
||||
- Include responsive loading, empty, error, and success states.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
{"schemaVersion":1,"mantineVersion":"9.4.1","customWidgetVersion":"2.0.0","types":["\"\" | \"anonymous\" | \"use-credentials\"","\"-moz-initial\" | \"inherit\" | \"initial\" | \"revert\" | \"revert-layer\" | \"unset\" | \"auto\" | \"fixed\"","\"-moz-initial\" | \"inherit\" | \"initial\" | \"revert\" | \"revert-layer\" | \"unset\" | \"none\" | \"auto\" | \"all\" | \"fill\" | \"stroke\" | \"painted\" | \"visible\" | \"visibleFill\" | \"visiblePainted\" | \"visibleStroke\"","\"-moz-initial\" | \"inherit\" | \"initial\" | \"revert\" | \"revert-layer\" | \"unset\" | \"none\" | \"block\" | \"inline\" | \"both\" | \"horizontal\" | \"vertical\"","\"-moz-initial\" | \"inherit\" | \"initial\" | \"revert\" | \"revert-layer\" | \"unset\" | \"none\" | \"contain\" | \"cover\" | \"fill\" | \"scale-down\"","\"-moz-initial\" | \"inherit\" | \"initial\" | \"revert\" | \"revert-layer\" | \"unset\" | \"wrap\" | \"nowrap\" | \"wrap-reverse\"","\"12h\" | \"24h\"","\"activity\" | \"display-none\"","\"all\" | \"parent\" | \"child\"","\"all\" | \"segment\"","\"always\" | \"hover\" | \"not-hover\" | \"never\"","\"area\" | \"radial\" | \"scatter\"","\"auto\" | \"scroll\" | \"always\" | \"hover\" | \"never\"","\"auto-fit\" | \"auto-fill\"","\"block\" | \"grid\"","\"both\" | \"rightSection\" | \"clear\"","\"bottom\" | \"top\"","\"bottom\" | \"top\" | \"baseline\" | \"middle\"","\"bottom\" | \"top\" | \"middle\"","\"bottom-end\" | \"bottom-start\" | \"top-end\" | \"top-start\" | \"bottom-center\" | \"top-center\" | \"middle-center\" | \"middle-end\" | \"middle-start\"","\"button\" | \"submit\" | \"reset\"","\"center\" | \"bottom\"","\"center\" | \"left\" | \"right\"","\"center\" | \"left\" | \"right\" | \"justify\" | \"char\"","\"center\" | \"side\" | \"merge\"","\"checkbox\" | \"radio\"","\"dashed\" | \"dotted\" | \"solid\"","\"default\" | \"gradient\"","\"default\" | \"responsive\"","\"default\" | \"stacked\" | \"percent\" | \"split\"","\"default\" | \"stacked\" | \"percent\" | \"waterfall\"","\"div\" | \"label\"","\"end\" | \"start\"","\"filled\" | \"light\"","\"fixed\" | \"absolute\"","\"hex\" | \"hexa\" | \"rgba\" | \"rgb\" | \"hsl\" | \"hsla\"","\"horizontal\" | \"vertical\"","\"hover\" | \"click\" | \"click-hover\"","\"inherit\" | \"auto\" | \"baseline\" | \"before-edge\" | \"text-before-edge\" | \"middle\" | \"central\" | \"after-edge\" | \"text-after-edge\" | \"ideographic\" | \"alphabetic\" | \"hanging\" | \"mathematical\"","\"inherit\" | \"auto\" | \"sRGB\" | \"linearRGB\"","\"inherit\" | \"auto\" | \"text-before-edge\" | \"middle\" | \"central\" | \"text-after-edge\" | \"ideographic\" | \"alphabetic\" | \"hanging\" | \"mathematical\" | \"use-script\" | \"no-change\" | \"reset-size\"","\"inherit\" | \"end\" | \"start\" | \"middle\"","\"inherit\" | \"nonzero\" | \"evenodd\"","\"inherit\" | \"round\" | \"butt\" | \"square\"","\"inherit\" | \"round\" | \"miter\" | \"bevel\"","\"initial\" | \"medial\" | \"terminal\" | \"isolated\"","\"inside\" | \"outside\"","\"left\" | \"right\"","\"left\" | \"right\" | \"bottom\" | \"top\" | \"left-end\" | \"left-start\" | \"right-end\" | \"right-start\" | \"bottom-end\" | \"bottom-start\" | \"top-end\" | \"top-start\"","\"left\" | \"right\" | \"inside\"","\"link\" | \"none\" | \"copy\" | \"execute\" | \"move\" | \"popup\"","\"media\" | \"container\"","\"month\" | \"year\" | \"decade\"","\"native\" | \"scrollarea\"","\"none\" | \"all\" | \"rows\" | \"groups\" | \"columns\"","\"none\" | \"all\" | \"with-indicators\"","\"none\" | \"ascending\" | \"descending\" | \"other\"","\"none\" | \"inline\" | \"list\" | \"both\"","\"none\" | \"strict\" | \"blur\"","\"none\" | \"sum\"","\"none\" | \"thousand\" | \"lakh\" | \"wan\"","\"none\" | \"x\" | \"y\" | \"xy\"","\"number\" | RegExp | \"alphanumeric\"","\"off\" | \"assertive\" | \"polite\"","\"off\" | \"on\"","\"ordered\" | \"unordered\"","\"right-to-left\" | \"left-to-right\"","\"search\" | \"enter\" | \"done\" | \"go\" | \"next\" | \"previous\" | \"send\"","\"search\" | \"text\" | \"none\" | \"tel\" | \"url\" | \"email\" | \"numeric\" | \"decimal\"","\"step\" | \"bump\" | \"linear\" | \"natural\" | \"monotone\" | \"stepBefore\" | \"stepAfter\"","\"stepInactive\" | \"stepProgress\" | \"stepCompleted\"","\"sum\" | \"replace\"","\"td\" | \"th\"","\"text\" | \"additions\" | \"additions removals\" | \"additions text\" | \"all\" | \"removals\" | \"removals additions\" | \"removals text\" | \"text additions\" | \"text removals\"","\"text\" | \"tel\" | \"password\"","\"time\" | \"duration\"","\"up\" | \"down\"","\"value\" | \"name\" | \"percent\"","\"viewport\"","\"wrap\" | \"nowrap\" | \"balance\" | \"pretty\" | \"stable\"","\"x\" | \"y\"","\"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\"","\"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | (string & {})","\"yes\" | \"no\"","'Text' | 'Title' | 'Badge' | 'Code' | 'Image'","'auto' | 'manual'","'json' | 'text'","'xs' | 'sm' | 'md' | 'lg' | 'xl'","(\"input\" | \"label\" | \"description\" | \"error\")[]","(\"next\" | \"previLine truncated
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
> Generated from `component-catalog-v1.json`. Catalog schema v1 · Custom Widget 2.0.0 · Mantine 9.4.1. Do not edit this file by hand.
|
||||
|
||||
This is the complete offline Custom JSX component contract for this Homarr release. When connected to Homarr, prefer the live catalog because the installed release may differ. The catalog is descriptive, not a prop allowlist: ordinary serializable props pass through unless the capability boundary explicitly blocks them.
|
||||
This is the complete Custom JSX component boundary for this Homarr release. The machine-readable `component-catalog.json` contains exact generated component, prop, binding, and safety metadata; these Markdown pages provide the human-readable inventory and upstream Mantine indexes. Ordinary serializable props pass through unless the capability boundary explicitly blocks them.
|
||||
|
||||
## Package references
|
||||
|
||||
@@ -14,7 +14,7 @@ This is the complete offline Custom JSX component contract for this Homarr relea
|
||||
## Authoring boundary
|
||||
|
||||
- Use the exact component names below. Compound names such as `Tabs.List`, `Card.Section`, and `Radio.Group` are distinct catalog entries.
|
||||
- The effective prop API is the shared prop table plus the component-specific table in the package reference. A component-specific record overrides the shared record with the same name.
|
||||
- Use the official Mantine LLM links for component props and examples. Homarr's live catalog is authoritative for availability, bindings, and blocked capabilities.
|
||||
- Use `bind="name"` only when a component record declares bind metadata. Read the temporary in-memory value from `inputs.name`; it is never persisted.
|
||||
- Ordinary authored callbacks remain blocked. Restricted collection callbacks, directly invoked zero-argument derived-value IIFEs, and `RecursiveList`'s child template may use the immutable local `const` grammar in [JSX runtime](runtime.md#immutable-local-bindings).
|
||||
- Use [`RecursiveList`](homarr-components.md#component-recursivelist) for custom arbitrary-depth trees. Do not author recursion or pass a renderer callback to Mantine Tree.
|
||||
@@ -24,15 +24,15 @@ This is the complete offline Custom JSX component contract for this Homarr relea
|
||||
|
||||
### Mantine Core
|
||||
|
||||
[`Accordion`](mantine-core.md#component-accordion), [`Accordion.Chevron`](mantine-core.md#component-accordion-2e-chevron), [`Accordion.Control`](mantine-core.md#component-accordion-2e-control), [`Accordion.Item`](mantine-core.md#component-accordion-2e-item), [`Accordion.Panel`](mantine-core.md#component-accordion-2e-panel), [`AccordionChevron`](mantine-core.md#component-accordionchevron), [`AccordionControl`](mantine-core.md#component-accordioncontrol), [`AccordionItem`](mantine-core.md#component-accordionitem), [`AccordionPanel`](mantine-core.md#component-accordionpanel), [`ActionIcon`](mantine-core.md#component-actionicon), [`ActionIcon.Group`](mantine-core.md#component-actionicon-2e-group), [`ActionIcon.GroupSection`](mantine-core.md#component-actionicon-2e-groupsection), [`ActionIconGroup`](mantine-core.md#component-actionicongroup), [`ActionIconGroupSection`](mantine-core.md#component-actionicongroupsection), [`Alert`](mantine-core.md#component-alert), [`AlphaSlider`](mantine-core.md#component-alphaslider), [`Anchor`](mantine-core.md#component-anchor), [`AngleSlider`](mantine-core.md#component-angleslider), [`AspectRatio`](mantine-core.md#component-aspectratio), [`Autocomplete`](mantine-core.md#component-autocomplete), [`Avatar`](mantine-core.md#component-avatar), [`Avatar.Group`](mantine-core.md#component-avatar-2e-group), [`AvatarGroup`](mantine-core.md#component-avatargroup), [`BackgroundImage`](mantine-core.md#component-backgroundimage), [`Badge`](mantine-core.md#component-badge), [`Blockquote`](mantine-core.md#component-blockquote), [`Box`](mantine-core.md#component-box), [`Breadcrumbs`](mantine-core.md#component-breadcrumbs), [`Burger`](mantine-core.md#component-burger), [`Button`](mantine-core.md#component-button), [`Button.Group`](mantine-core.md#component-button-2e-group), [`Button.GroupSection`](mantine-core.md#component-button-2e-groupsection), [`ButtonGroup`](mantine-core.md#component-buttongroup), [`ButtonGroupSection`](mantine-core.md#component-buttongroupsection), [`Card`](mantine-core.md#component-card), [`Card.Section`](mantine-core.md#component-card-2e-section), [`CardSection`](mantine-core.md#component-cardsection), [`Center`](mantine-core.md#component-center), [`CheckIcon`](mantine-core.md#component-checkicon), [`Checkbox`](mantine-core.md#component-checkbox), [`Checkbox.Card`](mantine-core.md#component-checkbox-2e-card), [`Checkbox.Group`](mantine-core.md#component-checkbox-2e-group), [`Checkbox.Indicator`](mantine-core.md#component-checkbox-2e-indicator), [`CheckboxCard`](mantine-core.md#component-checkboxcard), [`CheckboxGroup`](mantine-core.md#component-checkboxgroup), [`CheckboxIndicator`](mantine-core.md#component-checkboxindicator), [`Chip`](mantine-core.md#component-chip), [`Chip.Group`](mantine-core.md#component-chip-2e-group), [`ChipGroup`](mantine-core.md#component-chipgroup), [`CloseButton`](mantine-core.md#component-closebutton), [`CloseIcon`](mantine-core.md#component-closeicon), [`Code`](mantine-core.md#component-code), [`Collapse`](mantine-core.md#component-collapse), [`ColorInput`](mantine-core.md#component-colorinput), [`ColorPicker`](mantine-core.md#component-colorpicker), [`ColorSwatch`](mantine-core.md#component-colorswatch), [`Container`](mantine-core.md#component-container), [`CopyButton`](mantine-core.md#component-copybutton), [`DataList`](mantine-core.md#component-datalist), [`DataList.Item`](mantine-core.md#component-datalist-2e-item), [`DataList.ItemLabel`](mantine-core.md#component-datalist-2e-itemlabel), [`DataList.ItemValue`](mantine-core.md#component-datalist-2e-itemvalue), [`DataListItem`](mantine-core.md#component-datalistitem), [`DataListItemLabel`](mantine-core.md#component-datalistitemlabel), [`DataListItemValue`](mantine-core.md#component-datalistitemvalue), [`Divider`](mantine-core.md#component-divider), [`EmptyState`](mantine-core.md#component-emptystate), [`EmptyState.Actions`](mantine-core.md#component-emptystate-2e-actions), [`EmptyState.Description`](mantine-core.md#component-emptystate-2e-description), [`EmptyState.Indicator`](mantine-core.md#component-emptystate-2e-indicator), [`EmptyState.Title`](mantine-core.md#component-emptystate-2e-title), [`EmptyStateActions`](mantine-core.md#component-emptystateactions), [`EmptyStateDescription`](mantine-core.md#component-emptystatedescription), [`EmptyStateIndicator`](mantine-core.md#component-emptystateindicator), [`EmptyStateTitle`](mantine-core.md#component-emptystatetitle), [`Fieldset`](mantine-core.md#component-fieldset), [`FlatTreeNode`](mantine-core.md#component-flattreenode), [`Flex`](mantine-core.md#component-flex), [`FloatingArrow`](mantine-core.md#component-floatingarrow), [`FloatingIndicator`](mantine-core.md#component-floatingindicator), [`Grid`](mantine-core.md#component-grid), [`Grid.Col`](mantine-core.md#component-grid-2e-col), [`GridCol`](mantine-core.md#component-gridcol), [`Group`](mantine-core.md#component-group), [`Highlight`](mantine-core.md#component-highlight), [`HoverCardLine truncated
|
||||
[`Accordion`](https://mantine.dev/core/accordion/), [`Accordion.Chevron`](https://mantine.dev/core/accordion/), [`Accordion.Control`](https://mantine.dev/core/accordion/), [`Accordion.Item`](https://mantine.dev/core/accordion/), [`Accordion.Panel`](https://mantine.dev/core/accordion/), [`AccordionChevron`](https://mantine.dev/core/accordion-chevron/), [`AccordionControl`](https://mantine.dev/core/accordion-control/), [`AccordionItem`](https://mantine.dev/core/accordion-item/), [`AccordionPanel`](https://mantine.dev/core/accordion-panel/), [`ActionIcon`](https://mantine.dev/core/action-icon/), [`ActionIcon.Group`](https://mantine.dev/core/action-icon/), [`ActionIcon.GroupSection`](https://mantine.dev/core/action-icon/), [`ActionIconGroup`](https://mantine.dev/core/action-icon-group/), [`ActionIconGroupSection`](https://mantine.dev/core/action-icon-group-section/), [`Alert`](https://mantine.dev/core/alert/), [`AlphaSlider`](https://mantine.dev/core/alpha-slider/), [`Anchor`](https://mantine.dev/core/anchor/), [`AngleSlider`](https://mantine.dev/core/angle-slider/), [`AspectRatio`](https://mantine.dev/core/aspect-ratio/), [`Autocomplete`](https://mantine.dev/core/autocomplete/), [`Avatar`](https://mantine.dev/core/avatar/), [`Avatar.Group`](https://mantine.dev/core/avatar/), [`AvatarGroup`](https://mantine.dev/core/avatar-group/), [`BackgroundImage`](https://mantine.dev/core/background-image/), [`Badge`](https://mantine.dev/core/badge/), [`Blockquote`](https://mantine.dev/core/blockquote/), [`Box`](https://mantine.dev/core/box/), [`Breadcrumbs`](https://mantine.dev/core/breadcrumbs/), [`Burger`](https://mantine.dev/core/burger/), [`Button`](https://mantine.dev/core/button/), [`Button.Group`](https://mantine.dev/core/button/), [`Button.GroupSection`](https://mantine.dev/core/button/), [`ButtonGroup`](https://mantine.dev/core/button-group/), [`ButtonGroupSection`](https://mantine.dev/core/button-group-section/), [`Card`](https://mantine.dev/core/card/), [`Card.Section`](https://mantine.dev/core/card/), [`CardSection`](https://mantine.dev/core/card-section/), [`Center`](https://mantine.dev/core/center/), [`CheckIcon`](https://mantine.dev/core/check-icon/), [`Checkbox`](https://mantine.dev/core/checkbox/), [`Checkbox.Card`](https://mantine.dev/core/checkbox/), [`Checkbox.Group`](https://mantine.dev/core/checkbox/), [`Checkbox.Indicator`](https://mantine.dev/core/checkbox/), [`CheckboxCard`](https://mantine.dev/core/checkbox-card/), [`CheckboxGroup`](https://mantine.dev/core/checkbox-group/), [`CheckboxIndicator`](https://mantine.dev/core/checkbox-indicator/), [`Chip`](https://mantine.dev/core/chip/), [`Chip.Group`](https://mantine.dev/core/chip/), [`ChipGroup`](https://mantine.dev/core/chip-group/), [`CloseButton`](https://mantine.dev/core/close-button/), [`CloseIcon`](https://mantine.dev/core/close-icon/), [`Code`](https://mantine.dev/core/code/), [`Collapse`](https://mantine.dev/core/collapse/), [`ColorInput`](https://mantine.dev/core/color-input/), [`ColorPicker`](https://mantine.dev/core/color-picker/), [`ColorSwatch`](https://mantine.dev/core/color-swatch/), [`Container`](https://mantine.dev/core/container/), [`CopyButton`](https://mantine.dev/core/copy-button/), [`DataList`](https://mantine.dev/core/data-list/), [`DataList.Item`](https://mantine.dev/core/data-list/), [`DataList.ItemLabel`](https://mantine.dev/core/data-list/), [`DataList.ItemValue`](https://mantine.dev/core/data-list/), [`DataListItem`](https://mantine.dev/core/data-list-item/), [`DataListItemLabel`](https://mantine.dev/core/data-list-item-label/), [`DataListItemValue`](https://mantine.dev/core/data-list-item-value/), [`Divider`](https://mantine.dev/core/divider/), [`EmptyState`](https://mantine.dev/core/empty-state/), [`EmptyState.Actions`](https://mantine.dev/core/empty-state/), [`EmptyState.Description`](https://mantine.dev/core/empty-state/), [`EmptyState.Indicator`](https://mantine.dev/core/empty-state/), [`EmptyState.Title`](https://mantine.dev/core/empty-state/), [`EmptyStateActions`](https://mantine.dev/core/empty-state-actions/), [`EmptyStateDescription`](https://mantine.dev/core/empty-state-description/), [`EmptyStateIndicator`](https://mantine.dev/core/empty-state-indicator/), [`EmptyStateTitle`](https://mantine.dev/core/empty-state-title/), [`Fieldset`](https://mantine.dev/core/fieldset/), [`FlatTreeNode`](https://mantine.dev/core/flat-tree-node/), [`Flex`](https://mantine.dev/core/flex/), [`FloatingArrow`](https://mantine.dev/core/floating-arrow/), [`FloatingIndicator`](https://mantine.dev/core/floating-indicator/), [`Grid`](https://mantine.dev/core/grid/), [`Grid.Col`](https://mantine.dev/core/grid/), [`GridCol`](https://mantine.dev/core/grid-col/), [`Group`](https://mantine.dev/core/group/), [`Highlight`](https://mantine.dev/core/highlight/), [`HoverCard`](https://mantine.dev/core/hover-card/), [`HoverCard.Dropdown`](https://mantine.dev/core/hover-card/), [`HoverCard.Group`](https://mantine.dev/core/hover-card/), [`HoverCard.Line truncated
|
||||
|
||||
### Mantine Dates
|
||||
|
||||
[`Calendar`](mantine-dates.md#component-calendar), [`CalendarHeader`](mantine-dates.md#component-calendarheader), [`DateInput`](mantine-dates.md#component-dateinput), [`DatePicker`](mantine-dates.md#component-datepicker), [`DatePickerInput`](mantine-dates.md#component-datepickerinput), [`DateTimePicker`](mantine-dates.md#component-datetimepicker), [`Day`](mantine-dates.md#component-day), [`DecadeLevel`](mantine-dates.md#component-decadelevel), [`DecadeLevelGroup`](mantine-dates.md#component-decadelevelgroup), [`InlineDateTimePicker`](mantine-dates.md#component-inlinedatetimepicker), [`LevelsGroup`](mantine-dates.md#component-levelsgroup), [`MiniCalendar`](mantine-dates.md#component-minicalendar), [`Month`](mantine-dates.md#component-month), [`MonthLevel`](mantine-dates.md#component-monthlevel), [`MonthLevelGroup`](mantine-dates.md#component-monthlevelgroup), [`MonthPicker`](mantine-dates.md#component-monthpicker), [`MonthPickerInput`](mantine-dates.md#component-monthpickerinput), [`MonthsList`](mantine-dates.md#component-monthslist), [`PickerControl`](mantine-dates.md#component-pickercontrol), [`TimeGrid`](mantine-dates.md#component-timegrid), [`TimeInput`](mantine-dates.md#component-timeinput), [`TimePicker`](mantine-dates.md#component-timepicker), [`TimeValue`](mantine-dates.md#component-timevalue), [`WeekdaysRow`](mantine-dates.md#component-weekdaysrow), [`YearLevel`](mantine-dates.md#component-yearlevel), [`YearLevelGroup`](mantine-dates.md#component-yearlevelgroup), [`YearPicker`](mantine-dates.md#component-yearpicker), [`YearPickerInput`](mantine-dates.md#component-yearpickerinput), [`YearsList`](mantine-dates.md#component-yearslist)
|
||||
[`Calendar`](https://mantine.dev/dates/calendar/), [`CalendarHeader`](https://mantine.dev/dates/calendar-header/), [`DateInput`](https://mantine.dev/dates/date-input/), [`DatePicker`](https://mantine.dev/dates/date-picker/), [`DatePickerInput`](https://mantine.dev/dates/date-picker-input/), [`DateTimePicker`](https://mantine.dev/dates/date-time-picker/), [`Day`](https://mantine.dev/dates/day/), [`DecadeLevel`](https://mantine.dev/dates/decade-level/), [`DecadeLevelGroup`](https://mantine.dev/dates/decade-level-group/), [`InlineDateTimePicker`](https://mantine.dev/dates/inline-date-time-picker/), [`LevelsGroup`](https://mantine.dev/dates/levels-group/), [`MiniCalendar`](https://mantine.dev/dates/mini-calendar/), [`Month`](https://mantine.dev/dates/month/), [`MonthLevel`](https://mantine.dev/dates/month-level/), [`MonthLevelGroup`](https://mantine.dev/dates/month-level-group/), [`MonthPicker`](https://mantine.dev/dates/month-picker/), [`MonthPickerInput`](https://mantine.dev/dates/month-picker-input/), [`MonthsList`](https://mantine.dev/dates/months-list/), [`PickerControl`](https://mantine.dev/dates/picker-control/), [`TimeGrid`](https://mantine.dev/dates/time-grid/), [`TimeInput`](https://mantine.dev/dates/time-input/), [`TimePicker`](https://mantine.dev/dates/time-picker/), [`TimeValue`](https://mantine.dev/dates/time-value/), [`WeekdaysRow`](https://mantine.dev/dates/weekdays-row/), [`YearLevel`](https://mantine.dev/dates/year-level/), [`YearLevelGroup`](https://mantine.dev/dates/year-level-group/), [`YearPicker`](https://mantine.dev/dates/year-picker/), [`YearPickerInput`](https://mantine.dev/dates/year-picker-input/), [`YearsList`](https://mantine.dev/dates/years-list/)
|
||||
|
||||
### Mantine Charts
|
||||
|
||||
[`AreaChart`](mantine-charts.md#component-areachart), [`BarChart`](mantine-charts.md#component-barchart), [`BarsList`](mantine-charts.md#component-barslist), [`BubbleChart`](mantine-charts.md#component-bubblechart), [`ChartLegend`](mantine-charts.md#component-chartlegend), [`ChartTooltip`](mantine-charts.md#component-charttooltip), [`CompositeChart`](mantine-charts.md#component-compositechart), [`DonutChart`](mantine-charts.md#component-donutchart), [`FunnelChart`](mantine-charts.md#component-funnelchart), [`Heatmap`](mantine-charts.md#component-heatmap), [`LineChart`](mantine-charts.md#component-linechart), [`PieChart`](mantine-charts.md#component-piechart), [`RadarChart`](mantine-charts.md#component-radarchart), [`RadialBarChart`](mantine-charts.md#component-radialbarchart), [`SankeyChart`](mantine-charts.md#component-sankeychart), [`ScatterChart`](mantine-charts.md#component-scatterchart), [`Sparkline`](mantine-charts.md#component-sparkline), [`Treemap`](mantine-charts.md#component-treemap)
|
||||
[`AreaChart`](https://mantine.dev/charts/area-chart/), [`BarChart`](https://mantine.dev/charts/bar-chart/), [`BarsList`](https://mantine.dev/charts/bars-list/), [`BubbleChart`](https://mantine.dev/charts/bubble-chart/), [`ChartLegend`](https://mantine.dev/charts/chart-legend/), [`ChartTooltip`](https://mantine.dev/charts/chart-tooltip/), [`CompositeChart`](https://mantine.dev/charts/composite-chart/), [`DonutChart`](https://mantine.dev/charts/donut-chart/), [`FunnelChart`](https://mantine.dev/charts/funnel-chart/), [`Heatmap`](https://mantine.dev/charts/heatmap/), [`LineChart`](https://mantine.dev/charts/line-chart/), [`PieChart`](https://mantine.dev/charts/pie-chart/), [`RadarChart`](https://mantine.dev/charts/radar-chart/), [`RadialBarChart`](https://mantine.dev/charts/radial-bar-chart/), [`SankeyChart`](https://mantine.dev/charts/sankey-chart/), [`ScatterChart`](https://mantine.dev/charts/scatter-chart/), [`Sparkline`](https://mantine.dev/charts/sparkline/), [`Treemap`](https://mantine.dev/charts/treemap/)
|
||||
|
||||
### Homarr components
|
||||
|
||||
@@ -43,468 +43,21 @@ This is the complete offline Custom JSX component contract for this Homarr relea
|
||||
|
||||
### Mantine Core
|
||||
|
||||
[`Affix`](mantine-core.md#component-affix) — Escapes the widget layout boundary, [`AppShell`](mantine-core.md#component-appshell) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`AppShell.Aside`](mantine-core.md#component-appshell-2e-aside) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`AppShell.Footer`](mantine-core.md#component-appshell-2e-footer) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`AppShell.Header`](mantine-core.md#component-appshell-2e-header) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`AppShell.Main`](mantine-core.md#component-appshell-2e-main) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`AppShell.Navbar`](mantine-core.md#component-appshell-2e-navbar) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`AppShell.Section`](mantine-core.md#component-appshell-2e-section) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`AppShellAside`](mantine-core.md#component-appshellaside) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`AppShellFooter`](mantine-core.md#component-appshellfooter) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`AppShellHeader`](mantine-core.md#component-appshellheader) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`AppShellMain`](mantine-core.md#component-appshellmain) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`AppShellNavbar`](mantine-core.md#component-appshellnavbar) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`AppShellSection`](mantine-core.md#component-appshellsection) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`ColorSchemeScript`](mantine-core.md#component-colorschemescript) — Writes global document state, [`Combobox`](mantine-core.md#component-combobox) — Low-level composition primitive that requires authored callbacks, [`Combobox.Chevron`](mantine-core.md#component-combobox-2e-chevron) — Low-level composition primitive that requires authored callbacks, [`Combobox.ClearButton`](mantine-core.md#component-combobox-2e-clearbutton) — Low-level composition primitive that requires authored callbacks, [`Combobox.Dropdown`](mantine-core.md#component-combobox-2e-dropdown) — Low-level composition primitive that requires authored callbacks, [`Combobox.DropdownTarget`](mantine-core.md#component-combobox-2e-dropdowntarget) — Low-level composition primitive that requires authored callbacks, [`Combobox.Empty`](mantine-core.md#component-combobox-2e-empty) — Low-level composition primitive that requires authored callbacks, [`Combobox.EventsTarget`](mantine-core.md#component-combobox-2e-eventstarget) — Low-level composition primitive that requires authored callbacks, [`Combobox.Footer`](mantine-core.md#component-combobox-2e-footer) — Low-level composition primitive that requires authored callbacks, [`Combobox.Group`](mantine-core.md#component-combobox-2e-group) — Low-level composition primitive that requires authored callbacks, [`Combobox.Header`](mantine-core.md#component-combobox-2e-header) — Low-level composition primitive that requires authored callbacks, [`Combobox.HiddenInput`](mantine-core.md#component-combobox-2e-hiddeninput) — Low-level composition primitive that requires authored callbacks, [`Combobox.Option`](mantine-core.md#component-combobox-2e-option) — Low-level composition primitive that requires authored callbacks, [`Combobox.Options`](mantine-core.md#component-combobox-2e-options) — Low-level composition primitive that requires authored callbacks, [`Combobox.Search`](mantine-core.md#component-combobox-2e-search) — Low-level composition primitive that requires authored callbacks, [`Combobox.Target`](mantine-core.md#component-combobox-2e-target) — Low-level composition primitive that requires authored callbacks, [`ComboboxChevron`](mantine-core.md#component-comboboxchevron) — Low-level composition primitive that requires authored callbacks, [`ComboboxClearButton`](mantine-core.md#component-comboboxclearbutton) — Low-level composition primitive that requires authored callbacks, [`ComboboxDropdown`](mantine-core.md#component-comboboxdropdown) — Low-level composition primitive that requires authored callbacks, [`ComboboxDropdownTarget`](mantine-core.md#component-comboboxdropdowntarget) — Low-level composition primitive that requires authored callbacks, [`ComboboxEmpty`](mantine-core.md#component-comboboxempty) — Low-level composition primitive that requires authored callbacks, [`ComboboxEventsTarget`](mantine-core.md#component-comboboxeventstarget) — Low-level composition primitive that requires authored callbacks, [`ComboboxFooter`](mantine-core.md#componenLine truncated
|
||||
[`Affix`](https://mantine.dev/core/affix/) — Escapes the widget layout boundary, [`AppShell`](https://mantine.dev/core/app-shell/) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`AppShell.Aside`](https://mantine.dev/core/app-shell/) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`AppShell.Footer`](https://mantine.dev/core/app-shell/) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`AppShell.Header`](https://mantine.dev/core/app-shell/) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`AppShell.Main`](https://mantine.dev/core/app-shell/) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`AppShell.Navbar`](https://mantine.dev/core/app-shell/) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`AppShell.Section`](https://mantine.dev/core/app-shell/) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`AppShellAside`](https://mantine.dev/core/app-shell-aside/) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`AppShellFooter`](https://mantine.dev/core/app-shell-footer/) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`AppShellHeader`](https://mantine.dev/core/app-shell-header/) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`AppShellMain`](https://mantine.dev/core/app-shell-main/) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`AppShellNavbar`](https://mantine.dev/core/app-shell-navbar/) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`AppShellSection`](https://mantine.dev/core/app-shell-section/) — Escapes or replaces the widget layout, focus, scrolling, or overlay boundary, [`ColorSchemeScript`](https://mantine.dev/core/color-scheme-script/) — Writes global document state, [`Combobox`](https://mantine.dev/core/combobox/) — Low-level composition primitive that requires authored callbacks, [`Combobox.Chevron`](https://mantine.dev/core/combobox/) — Low-level composition primitive that requires authored callbacks, [`Combobox.ClearButton`](https://mantine.dev/core/combobox/) — Low-level composition primitive that requires authored callbacks, [`Combobox.Dropdown`](https://mantine.dev/core/combobox/) — Low-level composition primitive that requires authored callbacks, [`Combobox.DropdownTarget`](https://mantine.dev/core/combobox/) — Low-level composition primitive that requires authored callbacks, [`Combobox.Empty`](https://mantine.dev/core/combobox/) — Low-level composition primitive that requires authored callbacks, [`Combobox.EventsTarget`](https://mantine.dev/core/combobox/) — Low-level composition primitive that requires authored callbacks, [`Combobox.Footer`](https://mantine.dev/core/combobox/) — Low-level composition primitive that requires authored callbacks, [`Combobox.Group`](https://mantine.dev/core/combobox/) — Low-level composition primitive that requires authored callbacks, [`Combobox.Header`](https://mantine.dev/core/combobox/) — Low-level composition primitive that requires authored callbacks, [`Combobox.HiddenInput`](https://mantine.dev/core/combobox/) — Low-level composition primitive that requires authored callbacks, [`Combobox.Option`](https://mantine.dev/core/combobox/) — Low-level composition primitive that requires authored callbacks, [`Combobox.Options`](https://mantine.dev/core/combobox/) — Low-level composition primitive that requires authored callbacks, [`Combobox.Search`](https://mantine.dev/core/combobox/) — Low-level composition primitive that requires authored callbacks, [`Combobox.Target`](https://mantine.dev/core/combobox/) — Low-level composition primitive that requires authored callbacks, [`ComboboxChevron`](https://mantine.dev/core/combobox-chevron/) — Low-level composition primitive that requires authored callbacks, [`ComboboxClearButton`](https://mantine.dev/core/combobox-clear-button/) — Low-level composition primitive that requires authored callbacks, [`ComboboxDropdown`](https://mantine.dev/core/combobox-dropdown/) — Low-level composition primitive that requires authored callbacks, [`ComboboxDropdownTarget`](https://mantine.dev/core/combobox-dropdown-target/) — Low-level composition primitive that requires authored callbacks, [`ComboboxEmpty`](https://mantine.dev/core/combobox-empty/) — Low-level composition primitive that requires authored callbacks, [`ComboboxEventsTarget`](https://mantine.dev/core/combobox-events-target/) — Low-level composition primitive that requires authored callbacks, [`ComboboxFooter`](https://mantine.dev/core/combobox-footer/) — Low-level composition primitive that requires authored callbacks, [`ComboboxGroup`](https://mantine.dev/core/combobox-group/) — Low-level composition primitive that requLine truncated
|
||||
|
||||
### Mantine Dates
|
||||
|
||||
[`DatesProvider`](mantine-dates.md#component-datesprovider) — Replaces a Homarr-owned provider boundary, [`HiddenDatesInput`](mantine-dates.md#component-hiddendatesinput) — Internal date-input primitive, [`PickerInputBase`](mantine-dates.md#component-pickerinputbase) — Internal date-input primitive
|
||||
[`DatesProvider`](https://mantine.dev/dates/dates-provider/) — Replaces a Homarr-owned provider boundary, [`HiddenDatesInput`](https://mantine.dev/dates/hidden-dates-input/) — Internal date-input primitive, [`PickerInputBase`](https://mantine.dev/dates/picker-input-base/) — Internal date-input primitive
|
||||
|
||||
### Mantine Charts
|
||||
|
||||
[`AreaGradient`](mantine-charts.md#component-areagradient) — Low-level chart implementation helper
|
||||
[`AreaGradient`](https://mantine.dev/charts/area-gradient/) — Low-level chart implementation helper
|
||||
|
||||
### Homarr components
|
||||
|
||||
_None._
|
||||
|
||||
|
||||
## Shared prop API
|
||||
|
||||
These props are available to enabled components unless a component-specific record overrides the same name.
|
||||
|
||||
| Prop | Required | Type | Literal values | Description |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| <code>abbr</code> | no | <code>string</code> | — | — |
|
||||
| <code>about</code> | no | <code>string</code> | — | — |
|
||||
| <code>accentHeight</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>accept</code> | no | <code>string</code> | — | — |
|
||||
| <code>accessKey</code> | no | <code>string</code> | — | — |
|
||||
| <code>accumulate</code> | no | <code>"none" | "sum"</code> | <code>"none"</code>, <code>"sum"</code> | — |
|
||||
| <code>additive</code> | no | <code>"sum" | "replace"</code> | <code>"replace"</code>, <code>"sum"</code> | — |
|
||||
| <code>align</code> | no | <code>"center" | "left" | "right"</code> | <code>"center"</code>, <code>"char"</code>, <code>"justify"</code>, <code>"left"</code>, <code>"right"</code> | — |
|
||||
| <code>alignmentBaseline</code> | no | <code>"inherit" | "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | "ideographic" | "alphabetic" | "hanging" | "mathematical"</code> | <code>"after-edge"</code>, <code>"alphabetic"</code>, <code>"auto"</code>, <code>"baseline"</code>, <code>"before-edge"</code>, <code>"central"</code>, <code>"hanging"</code>, <code>"ideographic"</code>, <code>"inherit"</code>, <code>"mathematical"</code>, <code>"middle"</code>, <code>"text-after-edge"</code>, <code>"text-before-edge"</code> | — |
|
||||
| <code>allowReorder</code> | no | <code>"yes" | "no"</code> | <code>"no"</code>, <code>"yes"</code> | — |
|
||||
| <code>alphabetic</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>alt</code> | no | <code>string</code> | — | — |
|
||||
| <code>amplitude</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>arabicForm</code> | no | <code>"initial" | "medial" | "terminal" | "isolated"</code> | <code>"initial"</code>, <code>"isolated"</code>, <code>"medial"</code>, <code>"terminal"</code> | — |
|
||||
| <code>aria-activedescendant</code> | no | <code>string</code> | — | Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. |
|
||||
| <code>aria-atomic</code> | no | <code>false | true | "true" | "false"</code> | <code>false</code>, <code>"false"</code>, <code>true</code>, <code>"true"</code> | Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. |
|
||||
| <code>aria-autocomplete</code> | no | <code>"none" | "inline" | "list" | "both"</code> | <code>"both"</code>, <code>"inline"</code>, <code>"list"</code>, <code>"none"</code> | Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made. |
|
||||
| <code>aria-braillelabel</code> | no | <code>string</code> | — | Defines a string value that labels the current element, which is intended to be converted into Braille. |
|
||||
| <code>aria-brailleroledescription</code> | no | <code>string</code> | — | Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille. |
|
||||
| <code>aria-busy</code> | no | <code>false | true | "true" | "false"</code> | <code>false</code>, <code>"false"</code>, <code>true</code>, <code>"true"</code> | — |
|
||||
| <code>aria-checked</code> | no | <code>false | true | "true" | "false" | "mixed"</code> | <code>false</code>, <code>"false"</code>, <code>"mixed"</code>, <code>true</code>, <code>"true"</code> | Indicates the current "checked" state of checkboxes, radio buttons, and other widgets. |
|
||||
| <code>aria-colcount</code> | no | <code>number</code> | — | Defines the total number of columns in a table, grid, or treegrid. |
|
||||
| <code>aria-colindex</code> | no | <code>number</code> | — | Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid. |
|
||||
| <code>aria-colindextext</code> | no | <code>string</code> | — | Defines a human readable text alternative of aria-colindex. |
|
||||
| <code>aria-colspan</code> | no | <code>number</code> | — | Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid. |
|
||||
| <code>aria-controls</code> | no | <code>string</code> | — | Identifies the element (or elements) whose contents or presence are controlled by the current element. |
|
||||
| <code>aria-current</code> | no | <code>false | true | "time" | "true" | "false" | "page" | "step" | "location" | "date"</code> | <code>"date"</code>, <code>false</code>, <code>"false"</code>, <code>"location"</code>, <code>"page"</code>, <code>"step"</code>, <code>"time"</code>, <code>true</code>, <code>"true"</code> | Indicates the element that represents the current item within a container or set of related elements. |
|
||||
| <code>aria-describedby</code> | no | <code>string</code> | — | Identifies the element (or elements) that describes the object. |
|
||||
| <code>aria-description</code> | no | <code>string</code> | — | Defines a string value that describes or annotates the current element. |
|
||||
| <code>aria-details</code> | no | <code>string</code> | — | Identifies the element that provides a detailed, extended description for the object. |
|
||||
| <code>aria-disabled</code> | no | <code>false | true | "true" | "false"</code> | <code>false</code>, <code>"false"</code>, <code>true</code>, <code>"true"</code> | Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. |
|
||||
| <code>aria-dropeffect</code> | no | <code>"link" | "none" | "copy" | "execute" | "move" | "popup"</code> | <code>"copy"</code>, <code>"execute"</code>, <code>"link"</code>, <code>"move"</code>, <code>"none"</code>, <code>"popup"</code> | Indicates what functions can be performed when a dragged object is released on the drop target. |
|
||||
| <code>aria-errormessage</code> | no | <code>string</code> | — | Identifies the element that provides an error message for the object. |
|
||||
| <code>aria-expanded</code> | no | <code>false | true | "true" | "false"</code> | <code>false</code>, <code>"false"</code>, <code>true</code>, <code>"true"</code> | Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. |
|
||||
| <code>aria-flowto</code> | no | <code>string</code> | — | Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order. |
|
||||
| <code>aria-grabbed</code> | no | <code>false | true | "true" | "false"</code> | <code>false</code>, <code>"false"</code>, <code>true</code>, <code>"true"</code> | Indicates an element's "grabbed" state in a drag-and-drop operation. |
|
||||
| <code>aria-haspopup</code> | no | <code>false | true | "dialog" | "menu" | "grid" | "true" | "false" | "listbox" | "tree"</code> | <code>"dialog"</code>, <code>false</code>, <code>"false"</code>, <code>"grid"</code>, <code>"listbox"</code>, <code>"menu"</code>, <code>"tree"</code>, <code>true</code>, <code>"true"</code> | Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. |
|
||||
| <code>aria-hidden</code> | no | <code>false | true | "true" | "false"</code> | <code>false</code>, <code>"false"</code>, <code>true</code>, <code>"true"</code> | Indicates whether the element is exposed to an accessibility API. |
|
||||
| <code>aria-invalid</code> | no | <code>false | true | "true" | "false" | "grammar" | "spelling"</code> | <code>false</code>, <code>"false"</code>, <code>"grammar"</code>, <code>"spelling"</code>, <code>true</code>, <code>"true"</code> | Indicates the entered value does not conform to the format expected by the application. |
|
||||
| <code>aria-keyshortcuts</code> | no | <code>string</code> | — | Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. |
|
||||
| <code>aria-label</code> | no | <code>string</code> | — | Defines a string value that labels the current element. |
|
||||
| <code>aria-labelledby</code> | no | <code>string</code> | — | Identifies the element (or elements) that labels the current element. |
|
||||
| <code>aria-level</code> | no | <code>number</code> | — | Defines the hierarchical level of an element within a structure. |
|
||||
| <code>aria-live</code> | no | <code>"off" | "assertive" | "polite"</code> | <code>"assertive"</code>, <code>"off"</code>, <code>"polite"</code> | Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region. |
|
||||
| <code>aria-modal</code> | no | <code>false | true | "true" | "false"</code> | <code>false</code>, <code>"false"</code>, <code>true</code>, <code>"true"</code> | Indicates whether an element is modal when displayed. |
|
||||
| <code>aria-multiline</code> | no | <code>false | true | "true" | "false"</code> | <code>false</code>, <code>"false"</code>, <code>true</code>, <code>"true"</code> | Indicates whether a text box accepts multiple lines of input or only a single line. |
|
||||
| <code>aria-multiselectable</code> | no | <code>false | true | "true" | "false"</code> | <code>false</code>, <code>"false"</code>, <code>true</code>, <code>"true"</code> | Indicates that the user may select more than one item from the current selectable descendants. |
|
||||
| <code>aria-orientation</code> | no | <code>"horizontal" | "vertical"</code> | <code>"horizontal"</code>, <code>"vertical"</code> | Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. |
|
||||
| <code>aria-owns</code> | no | <code>string</code> | — | Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship. |
|
||||
| <code>aria-placeholder</code> | no | <code>string</code> | — | Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format. |
|
||||
| <code>aria-posinset</code> | no | <code>number</code> | — | Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. |
|
||||
| <code>aria-pressed</code> | no | <code>false | true | "true" | "false" | "mixed"</code> | <code>false</code>, <code>"false"</code>, <code>"mixed"</code>, <code>true</code>, <code>"true"</code> | Indicates the current "pressed" state of toggle buttons. |
|
||||
| <code>aria-readonly</code> | no | <code>false | true | "true" | "false"</code> | <code>false</code>, <code>"false"</code>, <code>true</code>, <code>"true"</code> | Indicates that the element is not editable, but is otherwise operable. |
|
||||
| <code>aria-relevant</code> | no | <code>"text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals"</code> | <code>"additions"</code>, <code>"additions removals"</code>, <code>"additions text"</code>, <code>"all"</code>, <code>"removals"</code>, <code>"removals additions"</code>, <code>"removals text"</code>, <code>"text"</code>, <code>"text additions"</code>, <code>"text removals"</code> | Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. |
|
||||
| <code>aria-required</code> | no | <code>false | true | "true" | "false"</code> | <code>false</code>, <code>"false"</code>, <code>true</code>, <code>"true"</code> | Indicates that user input is required on the element before a form may be submitted. |
|
||||
| <code>aria-roledescription</code> | no | <code>string</code> | — | Defines a human-readable, author-localized description for the role of an element. |
|
||||
| <code>aria-rowcount</code> | no | <code>number</code> | — | Defines the total number of rows in a table, grid, or treegrid. |
|
||||
| <code>aria-rowindex</code> | no | <code>number</code> | — | Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid. |
|
||||
| <code>aria-rowindextext</code> | no | <code>string</code> | — | Defines a human readable text alternative of aria-rowindex. |
|
||||
| <code>aria-rowspan</code> | no | <code>number</code> | — | Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid. |
|
||||
| <code>aria-selected</code> | no | <code>false | true | "true" | "false"</code> | <code>false</code>, <code>"false"</code>, <code>true</code>, <code>"true"</code> | Indicates the current "selected" state of various widgets. |
|
||||
| <code>aria-setsize</code> | no | <code>number</code> | — | Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. |
|
||||
| <code>aria-sort</code> | no | <code>"none" | "ascending" | "descending" | "other"</code> | <code>"ascending"</code>, <code>"descending"</code>, <code>"none"</code>, <code>"other"</code> | Indicates if items in a table or grid are sorted in ascending or descending order. |
|
||||
| <code>aria-valuemax</code> | no | <code>number</code> | — | Defines the maximum allowed value for a range widget. |
|
||||
| <code>aria-valuemin</code> | no | <code>number</code> | — | Defines the minimum allowed value for a range widget. |
|
||||
| <code>aria-valuenow</code> | no | <code>number</code> | — | Defines the current value for a range widget. |
|
||||
| <code>aria-valuetext</code> | no | <code>string</code> | — | Defines the human readable text alternative of aria-valuenow for a range widget. |
|
||||
| <code>ascent</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>attributeName</code> | no | <code>string</code> | — | — |
|
||||
| <code>attributeType</code> | no | <code>string</code> | — | — |
|
||||
| <code>autoCapitalize</code> | no | <code>(string & {}) | "none" | "off" | "on" | "sentences" | "words" | "characters"</code> | <code>"characters"</code>, <code>"none"</code>, <code>"off"</code>, <code>"on"</code>, <code>"sentences"</code>, <code>"words"</code> | — |
|
||||
| <code>autoComplete</code> | no | <code>HTMLInputAutoCompleteAttribute</code> | — | — |
|
||||
| <code>autoCorrect</code> | no | <code>string</code> | — | — |
|
||||
| <code>autoReverse</code> | no | <code>false | true | "true" | "false"</code> | <code>false</code>, <code>"false"</code>, <code>true</code>, <code>"true"</code> | — |
|
||||
| <code>autoSave</code> | no | <code>string</code> | — | — |
|
||||
| <code>azimuth</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>baseFrequency</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>baseProfile</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>baselineShift</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>bbox</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>bd</code> | no | <code>StyleProp<Property.Border<string | number>></code> | — | Border |
|
||||
| <code>bdrs</code> | no | <code>StyleProp<MantineSpacing></code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | BorderRadius, theme key: theme.radius |
|
||||
| <code>begin</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>bg</code> | no | <code>StyleProp<DefaultMantineColor></code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Background, theme key: theme.colors |
|
||||
| <code>bga</code> | no | <code>StyleProp<Property.BackgroundAttachment></code> | <code>"-moz-initial"</code>, <code>"fixed"</code>, <code>"inherit"</code>, <code>"initial"</code>, <code>"local"</code>, <code>"revert"</code>, <code>"revert-layer"</code>, <code>"scroll"</code>, <code>"unset"</code> | BackgroundAttachment |
|
||||
| <code>bgcolor</code> | no | <code>string</code> | — | — |
|
||||
| <code>bgp</code> | no | <code>StyleProp<Property.BackgroundPosition<string | number>></code> | — | BackgroundPosition |
|
||||
| <code>bgr</code> | no | <code>StyleProp<Property.BackgroundRepeat></code> | <code>"-moz-initial"</code>, <code>"inherit"</code>, <code>"initial"</code>, <code>"no-repeat"</code>, <code>"repeat"</code>, <code>"repeat-x"</code>, <code>"repeat-y"</code>, <code>"revert"</code>, <code>"revert-layer"</code>, <code>"round"</code>, <code>"space"</code>, <code>"unset"</code> | BackgroundRepeat |
|
||||
| <code>bgsz</code> | no | <code>StyleProp<Property.BackgroundSize<string | number>></code> | — | BackgroundSize |
|
||||
| <code>bias</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>border</code> | no | <code>number</code> | — | — |
|
||||
| <code>by</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>c</code> | no | <code>StyleProp<DefaultMantineColor></code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Color |
|
||||
| <code>calcMode</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>capHeight</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>capture</code> | no | <code>false | true | "user" | "environment"</code> | <code>"environment"</code>, <code>false</code>, <code>true</code>, <code>"user"</code> | — |
|
||||
| <code>cellPadding</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>cellSpacing</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>checked</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>clip</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>clipPath</code> | no | <code>string</code> | — | — |
|
||||
| <code>clipPathUnits</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>clipRule</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>colSpan</code> | no | <code>number</code> | — | — |
|
||||
| <code>color</code> | no | <code>string</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"initials"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Key of `theme.colors` or any valid CSS color |
|
||||
| <code>colorInterpolation</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>colorInterpolationFilters</code> | no | <code>"inherit" | "auto" | "sRGB" | "linearRGB"</code> | <code>"auto"</code>, <code>"inherit"</code>, <code>"linearRGB"</code>, <code>"sRGB"</code> | — |
|
||||
| <code>colorProfile</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>colorRendering</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>cols</code> | no | <code>number</code> | — | — |
|
||||
| <code>content</code> | no | <code>string</code> | — | — |
|
||||
| <code>contentScriptType</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>contentStyleType</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>contextMenu</code> | no | <code>string</code> | — | — |
|
||||
| <code>crossOrigin</code> | no | <code>"" | "anonymous" | "use-credentials"</code> | <code>""</code>, <code>"anonymous"</code>, <code>"use-credentials"</code> | — |
|
||||
| <code>cursor</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>cx</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>cy</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>d</code> | no | <code>string</code> | — | — |
|
||||
| <code>darkHidden</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether component should be hidden in dark color scheme with `display: none` |
|
||||
| <code>datatype</code> | no | <code>string</code> | — | — |
|
||||
| <code>decelerate</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>defaultChecked</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>defaultValue</code> | no | <code>string | number | readonly string[]</code> | — | — |
|
||||
| <code>descent</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>diffuseConstant</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>dir</code> | no | <code>string</code> | — | — |
|
||||
| <code>dirName</code> | no | <code>string</code> | — | — |
|
||||
| <code>direction</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>disabled</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>display</code> | no | <code>StyleProp<Property.Display></code> | <code>"-moz-initial"</code>, <code>"-ms-flexbox"</code>, <code>"-ms-grid"</code>, <code>"-ms-inline-flexbox"</code>, <code>"-ms-inline-grid"</code>, <code>"-webkit-flex"</code>, <code>"-webkit-inline-flex"</code>, <code>"block"</code>, <code>"contents"</code>, <code>"flex"</code>, <code>"flow"</code>, <code>"flow-root"</code>, <code>"grid"</code>, <code>"inherit"</code>, <code>"initial"</code>, <code>"inline"</code>, <code>"inline-block"</code>, <code>"inline-flex"</code>, <code>"inline-grid"</code>, <code>"inline-list-item"</code>, <code>"inline-table"</code>, <code>"list-item"</code>, <code>"none"</code>, <code>"revert"</code>, <code>"revert-layer"</code>, <code>"ruby"</code>, <code>"ruby-base"</code>, <code>"ruby-base-container"</code>, <code>"ruby-text"</code>, <code>"ruby-text-container"</code>, <code>"run-in"</code>, <code>"table"</code>, <code>"table-caption"</code>, <code>"table-cell"</code>, <code>"table-column"</code>, <code>"table-column-group"</code>, <code>"table-footer-group"</code>, <code>"table-header-group"</code>, <code>"table-row"</code>, <code>"table-row-group"</code>, <code>"unset"</code> | — |
|
||||
| <code>divisor</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>dominantBaseline</code> | no | <code>"inherit" | "auto" | "text-before-edge" | "middle" | "central" | "text-after-edge" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "use-script" | "no-change" | "reset-size"</code> | <code>"alphabetic"</code>, <code>"auto"</code>, <code>"central"</code>, <code>"hanging"</code>, <code>"ideographic"</code>, <code>"inherit"</code>, <code>"mathematical"</code>, <code>"middle"</code>, <code>"no-change"</code>, <code>"reset-size"</code>, <code>"text-after-edge"</code>, <code>"text-before-edge"</code>, <code>"use-script"</code> | — |
|
||||
| <code>draggable</code> | no | <code>false | true | "true" | "false"</code> | <code>false</code>, <code>"false"</code>, <code>true</code>, <code>"true"</code> | — |
|
||||
| <code>dur</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>dx</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>dy</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>edgeMode</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>elevation</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>enableBackground</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>end</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>enterKeyHint</code> | no | <code>"search" | "enter" | "done" | "go" | "next" | "previous" | "send"</code> | <code>"done"</code>, <code>"enter"</code>, <code>"go"</code>, <code>"next"</code>, <code>"previous"</code>, <code>"search"</code>, <code>"send"</code> | — |
|
||||
| <code>exponent</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>exportparts</code> | no | <code>string</code> | — | — |
|
||||
| <code>externalResourcesRequired</code> | no | <code>false | true | "true" | "false"</code> | <code>false</code>, <code>"false"</code>, <code>true</code>, <code>"true"</code> | — |
|
||||
| <code>ff</code> | no | <code>StyleProp<"text" | (string & {}) | "monospace" | "heading"></code> | <code>"heading"</code>, <code>"monospace"</code>, <code>"text"</code> | FontFamily |
|
||||
| <code>fill</code> | no | <code>string</code> | — | — |
|
||||
| <code>fillOpacity</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>fillRule</code> | no | <code>"inherit" | "nonzero" | "evenodd"</code> | <code>"evenodd"</code>, <code>"inherit"</code>, <code>"nonzero"</code> | — |
|
||||
| <code>filter</code> | no | <code>string</code> | — | — |
|
||||
| <code>filterRes</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>filterUnits</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>flex</code> | no | <code>StyleProp<Property.Flex<string | number>></code> | — | — |
|
||||
| <code>floodColor</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>floodOpacity</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>focusable</code> | no | <code>false | true | "auto" | "true" | "false"</code> | <code>"auto"</code>, <code>false</code>, <code>"false"</code>, <code>true</code>, <code>"true"</code> | — |
|
||||
| <code>fontFamily</code> | no | <code>string</code> | — | — |
|
||||
| <code>fontSize</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>fontSizeAdjust</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>fontStretch</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>fontStyle</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>fontVariant</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>fontWeight</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>format</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>fr</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>frame</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>from</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>fs</code> | no | <code>StyleProp<Property.FontStyle></code> | <code>"-moz-initial"</code>, <code>"inherit"</code>, <code>"initial"</code>, <code>"italic"</code>, <code>"normal"</code>, <code>"oblique"</code>, <code>"revert"</code>, <code>"revert-layer"</code>, <code>"unset"</code> | FontStyle |
|
||||
| <code>fw</code> | no | <code>StyleProp<Property.FontWeight></code> | <code>"-moz-initial"</code>, <code>"bold"</code>, <code>"bolder"</code>, <code>"inherit"</code>, <code>"initial"</code>, <code>"lighter"</code>, <code>"normal"</code>, <code>"revert"</code>, <code>"revert-layer"</code>, <code>"unset"</code> | FontWeight |
|
||||
| <code>fx</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>fy</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>fz</code> | no | <code>StyleProp<number | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | MantineFontSize></code> | <code>"h1"</code>, <code>"h2"</code>, <code>"h3"</code>, <code>"h4"</code>, <code>"h5"</code>, <code>"h6"</code>, <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | FontSize, theme key: theme.fontSizes |
|
||||
| <code>g1</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>g2</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>glyphName</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>glyphOrientationHorizontal</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>glyphOrientationVertical</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>gradientTransform</code> | no | <code>string</code> | — | — |
|
||||
| <code>gradientUnits</code> | no | <code>string</code> | — | — |
|
||||
| <code>h</code> | no | <code>StyleProp<Property.Height<string | number>></code> | — | Height, theme key: theme.spacing |
|
||||
| <code>hanging</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>headers</code> | no | <code>string</code> | — | — |
|
||||
| <code>height</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>hidden</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>hiddenFrom</code> | no | <code>MantineBreakpoint</code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | Breakpoint above which the component is hidden with `display: none` |
|
||||
| <code>horizAdvX</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>horizOriginX</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>href</code> | no | <code>string</code> | — | — |
|
||||
| <code>id</code> | no | <code>string</code> | — | Static id used as base to generate `aria-` attributes, by default generates random id |
|
||||
| <code>ideographic</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>imageRendering</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>in</code> | no | <code>string</code> | — | — |
|
||||
| <code>in2</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>inert</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>inlist</code> | no | <code>unknown</code> | — | — |
|
||||
| <code>inputMode</code> | no | <code>"search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal"</code> | <code>"decimal"</code>, <code>"email"</code>, <code>"none"</code>, <code>"numeric"</code>, <code>"search"</code>, <code>"tel"</code>, <code>"text"</code>, <code>"url"</code> | Hints at the type of data that might be entered by the user while editing the element or its contents |
|
||||
| <code>intercept</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>is</code> | no | <code>string</code> | — | Specify that a standard HTML element should behave like a defined custom built-in element |
|
||||
| <code>itemID</code> | no | <code>string</code> | — | — |
|
||||
| <code>itemProp</code> | no | <code>string</code> | — | — |
|
||||
| <code>itemScope</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>itemType</code> | no | <code>string</code> | — | — |
|
||||
| <code>k</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>k1</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>k2</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>k3</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>k4</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>kernelMatrix</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>kernelUnitLength</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>kerning</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>key</code> | no | <code>Key | null</code> | — | Stable identity used by React when rendering collections. |
|
||||
| <code>keyPoints</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>keySplines</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>keyTimes</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>lang</code> | no | <code>string</code> | — | — |
|
||||
| <code>lengthAdjust</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>letterSpacing</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>lh</code> | no | <code>StyleProp<number | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | MantineLineHeight></code> | <code>"h1"</code>, <code>"h2"</code>, <code>"h3"</code>, <code>"h4"</code>, <code>"h5"</code>, <code>"h6"</code>, <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | LineHeight, theme key: lineHeights |
|
||||
| <code>lightHidden</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether component should be hidden in light color scheme with `display: none` |
|
||||
| <code>lightingColor</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>limitingConeAngle</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>list</code> | no | <code>string</code> | — | — |
|
||||
| <code>local</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>lts</code> | no | <code>StyleProp<Property.LetterSpacing<string | number>></code> | — | LetterSpacing |
|
||||
| <code>m</code> | no | <code>StyleProp<MantineSpacing></code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | Margin, theme key: theme.spacing |
|
||||
| <code>mah</code> | no | <code>StyleProp<Property.MaxHeight<string | number>></code> | — | MaxHeight, theme key: theme.spacing |
|
||||
| <code>markerEnd</code> | no | <code>string</code> | — | — |
|
||||
| <code>markerHeight</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>markerMid</code> | no | <code>string</code> | — | — |
|
||||
| <code>markerStart</code> | no | <code>string</code> | — | — |
|
||||
| <code>markerUnits</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>markerWidth</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>mask</code> | no | <code>string</code> | — | — |
|
||||
| <code>maskContentUnits</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>maskUnits</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>mathematical</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>maw</code> | no | <code>StyleProp<Property.MaxWidth<string | number>></code> | — | MaxWidth, theme key: theme.spacing |
|
||||
| <code>max</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>maxLength</code> | no | <code>number</code> | — | — |
|
||||
| <code>mb</code> | no | <code>StyleProp<MantineSpacing></code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | MarginBottom, theme key: theme.spacing |
|
||||
| <code>me</code> | no | <code>StyleProp<MantineSpacing></code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | MarginInlineEnd, theme key: theme.spacing |
|
||||
| <code>media</code> | no | <code>string</code> | — | — |
|
||||
| <code>method</code> | no | <code>string</code> | — | — |
|
||||
| <code>mie</code> | no | <code>StyleProp<MantineSpacing></code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | MarginInlineEnd, theme key: theme.spacing |
|
||||
| <code>mih</code> | no | <code>StyleProp<Property.MinHeight<string | number>></code> | — | MinHeight, theme key: theme.spacing |
|
||||
| <code>min</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>minLength</code> | no | <code>number</code> | — | — |
|
||||
| <code>mis</code> | no | <code>StyleProp<MantineSpacing></code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | MarginInlineStart, theme key: theme.spacing |
|
||||
| <code>miw</code> | no | <code>StyleProp<Property.MinWidth<string | number>></code> | — | MinWidth, theme key: theme.spacing |
|
||||
| <code>ml</code> | no | <code>StyleProp<MantineSpacing></code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | MarginLeft, theme key: theme.spacing |
|
||||
| <code>mod</code> | no | <code>BoxMod</code> | — | Element modifiers transformed into `data-` attributes, for example, `{ 'data-size': 'xl' }`, falsy values are removed |
|
||||
| <code>mode</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>mr</code> | no | <code>StyleProp<MantineSpacing></code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | MarginRight, theme key: theme.spacing |
|
||||
| <code>ms</code> | no | <code>StyleProp<MantineSpacing></code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | MarginInlineStart, theme key: theme.spacing |
|
||||
| <code>mt</code> | no | <code>StyleProp<MantineSpacing></code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | MarginTop, theme key: theme.spacing |
|
||||
| <code>multiple</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>mx</code> | no | <code>StyleProp<MantineSpacing></code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | MarginInline, theme key: theme.spacing |
|
||||
| <code>my</code> | no | <code>StyleProp<MantineSpacing></code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | MarginBlock, theme key: theme.spacing |
|
||||
| <code>name</code> | no | <code>string</code> | — | — |
|
||||
| <code>nonce</code> | no | <code>string</code> | — | — |
|
||||
| <code>numOctaves</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>offset</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>opacity</code> | no | <code>StyleProp<Property.Opacity></code> | <code>"-moz-initial"</code>, <code>"inherit"</code>, <code>"initial"</code>, <code>"revert"</code>, <code>"revert-layer"</code>, <code>"unset"</code> | — |
|
||||
| <code>operator</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>order</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>orient</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>orientation</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>origin</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>overflow</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>overlinePosition</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>overlineThickness</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>p</code> | no | <code>StyleProp<MantineSpacing></code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | Padding, theme key: theme.spacing |
|
||||
| <code>paintOrder</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>panose1</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>part</code> | no | <code>string</code> | — | — |
|
||||
| <code>path</code> | no | <code>string</code> | — | — |
|
||||
| <code>pathLength</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>pattern</code> | no | <code>string</code> | — | — |
|
||||
| <code>patternContentUnits</code> | no | <code>string</code> | — | — |
|
||||
| <code>patternTransform</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>patternUnits</code> | no | <code>string</code> | — | — |
|
||||
| <code>pb</code> | no | <code>StyleProp<MantineSpacing></code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | PaddingBottom, theme key: theme.spacing |
|
||||
| <code>pe</code> | no | <code>StyleProp<MantineSpacing></code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | PaddingInlineEnd, theme key: theme.spacing |
|
||||
| <code>pie</code> | no | <code>StyleProp<MantineSpacing></code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | PaddingInlineEnd, theme key: theme.spacing |
|
||||
| <code>pis</code> | no | <code>StyleProp<MantineSpacing></code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | PaddingInlineStart, theme key: theme.spacing |
|
||||
| <code>pl</code> | no | <code>StyleProp<MantineSpacing></code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | PaddingLeft, theme key: theme.spacing |
|
||||
| <code>placeholder</code> | no | <code>string</code> | — | — |
|
||||
| <code>pointerEvents</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>points</code> | no | <code>string</code> | — | — |
|
||||
| <code>pointsAtX</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>pointsAtY</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>pointsAtZ</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>pr</code> | no | <code>StyleProp<MantineSpacing></code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | PaddingRight, theme key: theme.spacing |
|
||||
| <code>prefix</code> | no | <code>string</code> | — | — |
|
||||
| <code>preserveAlpha</code> | no | <code>false | true | "true" | "false"</code> | <code>false</code>, <code>"false"</code>, <code>true</code>, <code>"true"</code> | — |
|
||||
| <code>preserveAspectRatio</code> | no | <code>string</code> | — | — |
|
||||
| <code>primitiveUnits</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>property</code> | no | <code>string</code> | — | — |
|
||||
| <code>ps</code> | no | <code>StyleProp<MantineSpacing></code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | PaddingInlineStart, theme key: theme.spacing |
|
||||
| <code>pt</code> | no | <code>StyleProp<MantineSpacing></code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | PaddingTop, theme key: theme.spacing |
|
||||
| <code>px</code> | no | <code>StyleProp<MantineSpacing></code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | PaddingInline, theme key: theme.spacing |
|
||||
| <code>py</code> | no | <code>StyleProp<MantineSpacing></code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | PaddingBlock, theme key: theme.spacing |
|
||||
| <code>r</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>radioGroup</code> | no | <code>string</code> | — | — |
|
||||
| <code>radius</code> | no | <code>MantineRadius</code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | Key of `theme.radius` or any valid CSS value to set `border-radius`, numbers are converted to rem |
|
||||
| <code>readOnly</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>rel</code> | no | <code>string</code> | — | — |
|
||||
| <code>renderingIntent</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>repeatCount</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>repeatDur</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>required</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>requiredExtensions</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>requiredFeatures</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>resource</code> | no | <code>string</code> | — | — |
|
||||
| <code>restart</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>result</code> | no | <code>string</code> | — | — |
|
||||
| <code>results</code> | no | <code>number</code> | — | — |
|
||||
| <code>rev</code> | no | <code>string</code> | — | — |
|
||||
| <code>role</code> | no | <code>AriaRole</code> | — | — |
|
||||
| <code>rotate</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>rowSpan</code> | no | <code>number</code> | — | — |
|
||||
| <code>rows</code> | no | <code>number</code> | — | — |
|
||||
| <code>rules</code> | no | <code>"none" | "all" | "rows" | "groups" | "columns"</code> | <code>"all"</code>, <code>"columns"</code>, <code>"groups"</code>, <code>"none"</code>, <code>"rows"</code> | — |
|
||||
| <code>rx</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>ry</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>scale</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>scope</code> | no | <code>string</code> | — | — |
|
||||
| <code>security</code> | no | <code>string</code> | — | — |
|
||||
| <code>seed</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>shadow</code> | no | <code>MantineShadow</code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | Key of `theme.shadows` or any other valid CSS `box-shadow` value |
|
||||
| <code>shapeRendering</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>size</code> | no | <code>"xs" | "sm" | "md" | "lg" | "xl"</code> | <code>"compact-lg"</code>, <code>"compact-md"</code>, <code>"compact-sm"</code>, <code>"compact-xl"</code>, <code>"compact-xs"</code>, <code>"input-lg"</code>, <code>"input-md"</code>, <code>"input-sm"</code>, <code>"input-xl"</code>, <code>"input-xs"</code>, <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | Component size |
|
||||
| <code>slope</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>slot</code> | no | <code>string</code> | — | — |
|
||||
| <code>spacing</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>specularConstant</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>specularExponent</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>speed</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>spellCheck</code> | no | <code>false | true | "true" | "false"</code> | <code>false</code>, <code>"false"</code>, <code>true</code>, <code>"true"</code> | — |
|
||||
| <code>spreadMethod</code> | no | <code>string</code> | — | — |
|
||||
| <code>src</code> | no | <code>string</code> | — | — |
|
||||
| <code>startOffset</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>stdDeviation</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>stemh</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>stemv</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>step</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>stitchTiles</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>stopColor</code> | no | <code>string</code> | — | — |
|
||||
| <code>stopOpacity</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>strikethroughPosition</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>strikethroughThickness</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>string</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>stroke</code> | no | <code>string</code> | — | — |
|
||||
| <code>strokeDasharray</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>strokeDashoffset</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>strokeLinecap</code> | no | <code>"inherit" | "round" | "butt" | "square"</code> | <code>"butt"</code>, <code>"inherit"</code>, <code>"round"</code>, <code>"square"</code> | — |
|
||||
| <code>strokeLinejoin</code> | no | <code>"inherit" | "round" | "miter" | "bevel"</code> | <code>"bevel"</code>, <code>"inherit"</code>, <code>"miter"</code>, <code>"round"</code> | — |
|
||||
| <code>strokeMiterlimit</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>strokeOpacity</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>strokeWidth</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>style</code> | no | <code>CSSProperties</code> | — | Style to apply to the root element, used for virtualizer positioning |
|
||||
| <code>styles</code> | no | <code>Partial<Record<"label", CSSProperties>></code> | — | — |
|
||||
| <code>summary</code> | no | <code>string</code> | — | — |
|
||||
| <code>surfaceScale</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>systemLanguage</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>ta</code> | no | <code>StyleProp<Property.TextAlign></code> | <code>"-khtml-center"</code>, <code>"-khtml-left"</code>, <code>"-khtml-right"</code>, <code>"-moz-center"</code>, <code>"-moz-initial"</code>, <code>"-moz-left"</code>, <code>"-moz-right"</code>, <code>"-webkit-center"</code>, <code>"-webkit-left"</code>, <code>"-webkit-match-parent"</code>, <code>"-webkit-right"</code>, <code>"center"</code>, <code>"end"</code>, <code>"inherit"</code>, <code>"initial"</code>, <code>"justify"</code>, <code>"left"</code>, <code>"match-parent"</code>, <code>"revert"</code>, <code>"revert-layer"</code>, <code>"right"</code>, <code>"start"</code>, <code>"unset"</code> | TextAlign |
|
||||
| <code>tabIndex</code> | no | <code>number</code> | — | Tab index for the node |
|
||||
| <code>tableValues</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>target</code> | no | <code>string</code> | — | — |
|
||||
| <code>targetX</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>targetY</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>td</code> | no | <code>StyleProp<Property.TextDecoration<string | number>></code> | — | TextDecoration |
|
||||
| <code>textAnchor</code> | no | <code>"inherit" | "end" | "start" | "middle"</code> | <code>"end"</code>, <code>"inherit"</code>, <code>"middle"</code>, <code>"start"</code> | — |
|
||||
| <code>textDecoration</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>textLength</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>textRendering</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>title</code> | no | <code>string</code> | — | Item title, displayed next to the bullet |
|
||||
| <code>to</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>transform</code> | no | <code>string</code> | — | — |
|
||||
| <code>translate</code> | no | <code>"yes" | "no"</code> | <code>"no"</code>, <code>"yes"</code> | — |
|
||||
| <code>tt</code> | no | <code>StyleProp<Property.TextTransform></code> | <code>"-moz-initial"</code>, <code>"capitalize"</code>, <code>"full-size-kana"</code>, <code>"full-width"</code>, <code>"inherit"</code>, <code>"initial"</code>, <code>"lowercase"</code>, <code>"math-auto"</code>, <code>"none"</code>, <code>"revert"</code>, <code>"revert-layer"</code>, <code>"unset"</code>, <code>"uppercase"</code> | TextTransform |
|
||||
| <code>type</code> | no | <code>"button" | "submit" | "reset"</code> | <code>"button"</code>, <code>"checkbox"</code>, <code>"color"</code>, <code>"date"</code>, <code>"datetime-local"</code>, <code>"email"</code>, <code>"file"</code>, <code>"hidden"</code>, <code>"image"</code>, <code>"month"</code>, <code>"number"</code>, <code>"password"</code>, <code>"radio"</code>, <code>"range"</code>, <code>"reset"</code>, <code>"search"</code>, <code>"submit"</code>, <code>"tel"</code>, <code>"text"</code>, <code>"time"</code>, <code>"url"</code>, <code>"week"</code> | — |
|
||||
| <code>typeof</code> | no | <code>string</code> | — | — |
|
||||
| <code>u1</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>u2</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>underlinePosition</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>underlineThickness</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>unicode</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>unicodeBidi</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>unicodeRange</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>unitsPerEm</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>unselectable</code> | no | <code>"off" | "on"</code> | <code>"off"</code>, <code>"on"</code> | — |
|
||||
| <code>vAlphabetic</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>vHanging</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>vIdeographic</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>vMathematical</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>valign</code> | no | <code>"bottom" | "top" | "baseline" | "middle"</code> | <code>"baseline"</code>, <code>"bottom"</code>, <code>"middle"</code>, <code>"top"</code> | — |
|
||||
| <code>value</code> | no | <code>string | number | readonly string[]</code> | — | — |
|
||||
| <code>values</code> | no | <code>string</code> | — | — |
|
||||
| <code>variant</code> | no | <code>string</code> | <code>"contained"</code>, <code>"contrast"</code>, <code>"dashed"</code>, <code>"default"</code>, <code>"dot"</code>, <code>"dotted"</code>, <code>"filled"</code>, <code>"gradient"</code>, <code>"light"</code>, <code>"outline"</code>, <code>"pills"</code>, <code>"separated"</code>, <code>"solid"</code>, <code>"subtle"</code>, <code>"text"</code>, <code>"transparent"</code>, <code>"unstyled"</code>, <code>"vertical"</code>, <code>"white"</code> | Variant passed from parent component, sets `data-variant` |
|
||||
| <code>vectorEffect</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>version</code> | no | <code>string</code> | — | — |
|
||||
| <code>vertAdvY</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>vertOriginX</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>vertOriginY</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>viewBox</code> | no | <code>string</code> | — | — |
|
||||
| <code>viewTarget</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>visibility</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>visibleFrom</code> | no | <code>MantineBreakpoint</code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | Breakpoint below which the component is hidden with `display: none` |
|
||||
| <code>vocab</code> | no | <code>string</code> | — | — |
|
||||
| <code>w</code> | no | <code>StyleProp<Property.Width<string | number>></code> | — | Width, theme key: theme.spacing |
|
||||
| <code>width</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>widths</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>withBorder</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Adds border to the root element |
|
||||
| <code>wordSpacing</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>wrap</code> | no | <code>string</code> | — | — |
|
||||
| <code>writingMode</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>x</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>x1</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>x2</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>xChannelSelector</code> | no | <code>string</code> | — | — |
|
||||
| <code>xHeight</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>xlinkActuate</code> | no | <code>string</code> | — | — |
|
||||
| <code>xlinkArcrole</code> | no | <code>string</code> | — | — |
|
||||
| <code>xlinkHref</code> | no | <code>string</code> | — | — |
|
||||
| <code>xlinkRole</code> | no | <code>string</code> | — | — |
|
||||
| <code>xlinkShow</code> | no | <code>string</code> | — | — |
|
||||
| <code>xlinkTitle</code> | no | <code>string</code> | — | — |
|
||||
| <code>xlinkType</code> | no | <code>string</code> | — | — |
|
||||
| <code>xmlBase</code> | no | <code>string</code> | — | — |
|
||||
| <code>xmlLang</code> | no | <code>string</code> | — | — |
|
||||
| <code>xmlSpace</code> | no | <code>string</code> | — | — |
|
||||
| <code>xmlns</code> | no | <code>string</code> | — | — |
|
||||
| <code>xmlnsXlink</code> | no | <code>string</code> | — | — |
|
||||
| <code>y</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>y1</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>y2</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>yChannelSelector</code> | no | <code>string</code> | — | — |
|
||||
| <code>z</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>zoomAndPan</code> | no | <code>string</code> | — | — |
|
||||
|
||||
## Blocked capabilities
|
||||
|
||||
| Kind | Name | Reason |
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
[
|
||||
{
|
||||
"id": "service-status",
|
||||
"title": "Service status",
|
||||
"description": "A compact status widget backed by one load query.",
|
||||
"widget": {
|
||||
"$schema": "homarr-custom-widget-v2",
|
||||
"name": "Service status",
|
||||
"sources": [
|
||||
{
|
||||
"id": "default",
|
||||
"name": "Service API",
|
||||
"baseUrl": "https://example.com",
|
||||
"networkScope": "public",
|
||||
"auth": {
|
||||
"type": "none"
|
||||
}
|
||||
}
|
||||
],
|
||||
"requests": [
|
||||
{
|
||||
"id": "status",
|
||||
"sourceId": "default",
|
||||
"kind": "query",
|
||||
"method": "GET",
|
||||
"pathTemplate": "/api/status",
|
||||
"parameters": {},
|
||||
"auth": "inherit",
|
||||
"minimumBoardPermission": "view",
|
||||
"trigger": "load"
|
||||
}
|
||||
],
|
||||
"optionsSchema": {
|
||||
"type": "object",
|
||||
"properties": {},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"defaultOptions": {},
|
||||
"template": "<Stack gap=\"xs\" p=\"sm\">\n <Group justify=\"space-between\">\n <Text fw={600}>{data.status.name ?? \"Service\"}</Text>\n <Badge color={data.status.online ? \"green\" : \"red\"}>{data.status.online ? \"Online\" : \"Offline\"}</Badge>\n </Group>\n <Text size=\"sm\" c=\"dimmed\">{data.status.message ?? \"No additional details\"}</Text>\n </Stack>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "pokemon-evolution-tree",
|
||||
"title": "Pokémon evolution tree",
|
||||
"description": "A trusted arbitrary-depth tree with one immutable derived-value block per node.",
|
||||
"widget": {
|
||||
"$schema": "homarr-custom-widget-v2",
|
||||
"name": "Pokémon evolution tree",
|
||||
"sources": [
|
||||
{
|
||||
"id": "default",
|
||||
"name": "PokeAPI",
|
||||
"baseUrl": "https://pokeapi.co",
|
||||
"networkScope": "public",
|
||||
"auth": {
|
||||
"type": "none"
|
||||
}
|
||||
}
|
||||
],
|
||||
"requests": [
|
||||
{
|
||||
"id": "evolution",
|
||||
"sourceId": "default",
|
||||
"kind": "query",
|
||||
"method": "GET",
|
||||
"pathTemplate": "/api/v2/evolution-chain/1",
|
||||
"parameters": {},
|
||||
"auth": "inherit",
|
||||
"minimumBoardPermission": "view",
|
||||
"trigger": "load"
|
||||
}
|
||||
],
|
||||
"optionsSchema": {
|
||||
"type": "object",
|
||||
"properties": {},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"defaultOptions": {},
|
||||
"template": "<Stack gap=\"sm\" p=\"sm\">\n <Title order={3}>Evolution chain</Title>\n {status.evolution?.loading ? <Skeleton height={160} radius=\"md\" /> : status.evolution?.error ? <Alert color=\"red\">{status.evolution.error}</Alert> : data.evolution?.chain ?\n <RecursiveList data={data.evolution.chain} childrenPath=\"evolves_to\" keyPath=\"species.name\" defaultExpandedDepth={8} showLines>\n {(node, meta) => {\n const segments = node.species.url.split(\"/\").filter((part) => part);\n const dexId = segments.at(-1);\n return <Group gap=\"xs\"><Badge variant=\"light\">#{dexId}</Badge><Text tt=\"capitalize\" fw={600}>{node.species.name}</Text>{meta.hasChildren && <Text size=\"xs\" c=\"dimmed\">{meta.childCount} next</Text>}</Group>;\n }}\n </RecursiveList> : <Text c=\"dimmed\">No evolution chain returned.</Text>}\n</Stack>"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
> Generated from `component-catalog-v1.json`. Catalog schema v1 · Custom Widget 2.0.0 · Mantine 9.4.1. Do not edit this file by hand.
|
||||
|
||||
Package: `@homarr/widgets`. Effective props combine the [shared prop API](components.md#shared-prop-api) with each component's specific props below. Component-specific records override shared records with the same name.
|
||||
Package: `@homarr/widgets`. The component-specific props below supplement ordinary safe serializable Mantine props and style props. Component-specific records override ordinary behavior with the same name.
|
||||
|
||||
## Package guidance
|
||||
|
||||
@@ -36,6 +36,7 @@ Runs a named user-triggered action.
|
||||
|
||||
| Prop | Required | Type | Literal values | Description |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| <code>color</code> | no | <code>string</code> | — | — |
|
||||
| <code>confirmMessage</code> | no | <code>string</code> | — | — |
|
||||
| <code>disabled</code> | no | <code>boolean | string</code> | — | — |
|
||||
| <code>errorMessage</code> | no | <code>string</code> | — | — |
|
||||
@@ -46,6 +47,7 @@ Runs a named user-triggered action.
|
||||
| <code>requestId</code> | no | <code>string</code> | — | Identifier of the named Custom Widget action. |
|
||||
| <code>size</code> | no | <code>string</code> | — | — |
|
||||
| <code>successMessage</code> | no | <code>string</code> | — | — |
|
||||
| <code>variant</code> | no | <code>string</code> | — | — |
|
||||
|
||||
<a id="component-collapsible"></a>
|
||||
### `Collapsible`
|
||||
@@ -134,8 +136,10 @@ Refreshes load-triggered widget queries.
|
||||
|
||||
| Prop | Required | Type | Literal values | Description |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| <code>color</code> | no | <code>string</code> | — | — |
|
||||
| <code>label</code> | no | <code>string</code> | — | — |
|
||||
| <code>size</code> | no | <code>string</code> | — | — |
|
||||
| <code>variant</code> | no | <code>string</code> | — | — |
|
||||
|
||||
<a id="component-statbar"></a>
|
||||
### `StatBar`
|
||||
@@ -155,6 +159,7 @@ Displays a compact labeled statistic and progress value.
|
||||
|
||||
| Prop | Required | Type | Literal values | Description |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| <code>color</code> | no | <code>string</code> | — | — |
|
||||
| <code>label</code> | no | <code>string</code> | — | — |
|
||||
| <code>max</code> | no | <code>number</code> | — | — |
|
||||
| <code>value</code> | yes | <code>number</code> | — | — |
|
||||
@@ -179,12 +184,14 @@ Reads a nested value from a named manual-query result.
|
||||
| --- | --- | --- | --- | --- |
|
||||
| <code>as</code> | no | <code>'Text' | 'Title' | 'Badge' | 'Code' | 'Image'</code> | <code>"Text"</code>, <code>"Title"</code>, <code>"Badge"</code>, <code>"Code"</code>, <code>"Image"</code> | — |
|
||||
| <code>c</code> | no | <code>string</code> | — | — |
|
||||
| <code>color</code> | no | <code>string</code> | — | — |
|
||||
| <code>fit</code> | no | <code>string</code> | — | — |
|
||||
| <code>fw</code> | no | <code>number</code> | — | — |
|
||||
| <code>h</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>order</code> | no | <code>1 | 2 | 3 | 4 | 5 | 6</code> | <code>1</code>, <code>2</code>, <code>3</code>, <code>4</code>, <code>5</code>, <code>6</code> | — |
|
||||
| <code>radius</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>size</code> | no | <code>string</code> | — | — |
|
||||
| <code>variant</code> | no | <code>string</code> | — | — |
|
||||
| <code>w</code> | no | <code>string | number</code> | — | — |
|
||||
|
||||
<a id="component-subfetch"></a>
|
||||
@@ -253,6 +260,7 @@ Resolves an installed Tabler icon by its safe name.
|
||||
|
||||
| Prop | Required | Type | Literal values | Description |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| <code>color</code> | no | <code>string</code> | — | — |
|
||||
| <code>name</code> | yes | <code>string</code> | — | — |
|
||||
| <code>size</code> | no | <code>string | number</code> | — | — |
|
||||
| <code>stroke</code> | no | <code>string | number</code> | — | — |
|
||||
@@ -295,11 +303,13 @@ Runs named actions for the enabled and disabled states.
|
||||
|
||||
| Prop | Required | Type | Literal values | Description |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| <code>color</code> | no | <code>string</code> | — | — |
|
||||
| <code>disabled</code> | no | <code>boolean | string</code> | — | — |
|
||||
| <code>disabledParams</code> | no | <code>Record<string, string | number | boolean></code> | — | — |
|
||||
| <code>enabledParams</code> | no | <code>Record<string, string | number | boolean></code> | — | — |
|
||||
| <code>errorMessage</code> | no | <code>string</code> | — | — |
|
||||
| <code>initialValue</code> | no | <code>boolean | string</code> | — | — |
|
||||
| <code>label</code> | no | <code>string</code> | — | — |
|
||||
| <code>offParams</code> | no | <code>Record<string, string | number | boolean></code> | — | — |
|
||||
| <code>requestId</code> | no | <code>string</code> | — | Identifier of the named Custom Widget action. |
|
||||
| <code>size</code> | no | <code>string</code> | — | — |
|
||||
|
||||
|
||||
@@ -1,703 +1,5 @@
|
||||
# Mantine Charts
|
||||
|
||||
> Generated from `component-catalog-v1.json`. Catalog schema v1 · Custom Widget 2.0.0 · Mantine 9.4.1. Do not edit this file by hand.
|
||||
Use the official Mantine LLM index in [Mantine Core](mantine-core.md#charts) to discover chart documentation.
|
||||
|
||||
Package: `@mantine/charts`. Effective props combine the [shared prop API](components.md#shared-prop-api) with each component's specific props below. Component-specific records override shared records with the same name.
|
||||
|
||||
## Package guidance
|
||||
|
||||
Pass sanitized JSON data through serializable props. Use [immutable local `const` blocks](runtime.md#immutable-local-bindings) for repeated derived chart values; authored formatters and renderer callbacks remain blocked. Include a textual summary and do not rely on color alone.
|
||||
|
||||
## Enabled inventory
|
||||
|
||||
<code>AreaChart</code>, <code>BarChart</code>, <code>BarsList</code>, <code>BubbleChart</code>, <code>ChartLegend</code>, <code>ChartTooltip</code>, <code>CompositeChart</code>, <code>DonutChart</code>, <code>FunnelChart</code>, <code>Heatmap</code>, <code>LineChart</code>, <code>PieChart</code>, <code>RadarChart</code>, <code>RadialBarChart</code>, <code>SankeyChart</code>, <code>ScatterChart</code>, <code>Sparkline</code>, <code>Treemap</code>
|
||||
|
||||
## Denied inventory
|
||||
|
||||
<code>AreaGradient</code>
|
||||
|
||||
## Component records
|
||||
|
||||
<a id="component-areachart"></a>
|
||||
### `AreaChart`
|
||||
|
||||
- Safety: `wrapped`
|
||||
- Category: `charts`
|
||||
- Documentation: [upstream component API](https://mantine.dev/charts/area-chart/)
|
||||
- Temporary bind: not available
|
||||
- Subcomponents: none
|
||||
- Component-specific blocked props: none
|
||||
- Accessibility:
|
||||
- Include a nearby text summary of the chart data.
|
||||
|
||||
#### Component-specific props
|
||||
|
||||
| Prop | Required | Type | Literal values | Description |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| <code>activeDotProps</code> | no | <code>MantineChartDotProps</code> | — | Props passed down to all active dots. Ignored if `withDots={false}` is set. |
|
||||
| <code>areaChartProps</code> | no | <code>(CartesianChartProps<unknown> & { ref?: React.Ref<SVGSVGElement>; })</code> | — | Props passed down to recharts `AreaChart` component |
|
||||
| <code>attributes</code> | no | <code>{ area?: Record<string, any>; legend?: Record<string, any>; grid?: Record<string, any>; root?: Record<string, any>; ... 14 more ...; tooltipBody?: Record<...>; }</code> | — | — |
|
||||
| <code>connectNulls</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | If set, points with `null` values are connected |
|
||||
| <code>curveType</code> | no | <code>"step" | "bump" | "linear" | "natural" | "monotone" | "stepBefore" | "stepAfter"</code> | <code>"bump"</code>, <code>"linear"</code>, <code>"monotone"</code>, <code>"natural"</code>, <code>"step"</code>, <code>"stepAfter"</code>, <code>"stepBefore"</code> | Type of the curve |
|
||||
| <code>data</code> | yes | <code>ChartData</code> | — | Data used to display chart |
|
||||
| <code>dataKey</code> | yes | <code>string</code> | — | Key of the `data` object for x-axis values |
|
||||
| <code>dotProps</code> | no | <code>MantineChartDotProps</code> | — | Props passed down to all dots. Ignored if `withDots={false}` is set. |
|
||||
| <code>gridAxis</code> | no | <code>"none" | "x" | "y" | "xy"</code> | <code>"none"</code>, <code>"x"</code>, <code>"xy"</code>, <code>"y"</code> | Specifies which lines should be displayed in the grid, `'x'` by default |
|
||||
| <code>gridColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Color of the grid and cursor lines, by default depends on color scheme |
|
||||
| <code>gridProps</code> | no | <code>Omit<CartesianGridProps, "ref"></code> | — | Props passed down to the `CartesianGrid` component |
|
||||
| <code>legendProps</code> | no | <code>Omit<LegendProps, "ref"></code> | — | Props passed down to the `Legend` component |
|
||||
| <code>referenceLines</code> | no | <code>ChartReferenceLineProps[]</code> | — | Reference lines that should be displayed on the chart |
|
||||
| <code>rightYAxisLabel</code> | no | <code>string</code> | — | A label to display next to the right y-axis |
|
||||
| <code>rightYAxisProps</code> | no | <code>Omit<YAxisProps, "ref"></code> | — | Props passed down to the `YAxis` recharts component rendered on the right side |
|
||||
| <code>series</code> | yes | <code>AreaChartSeries[]</code> | — | An array of objects with `name` and `color` keys. Determines which data should be consumed from the `data` array. |
|
||||
| <code>splitColors</code> | no | <code>[DefaultMantineColor, DefaultMantineColor]</code> | — | A tuple of colors used when `type="split"` is set, ignored in all other cases. A tuple may include theme colors reference or any valid CSS colors |
|
||||
| <code>splitOffset</code> | no | <code>number</code> | — | Offset for the split gradient. By default, value is inferred from `data` and `series` if possible. Must be generated from the data array with `getSplitOffset` function. |
|
||||
| <code>textColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Color of the text displayed inside the chart, `'dimmed'` by default |
|
||||
| <code>tickLine</code> | no | <code>"none" | "x" | "y" | "xy"</code> | <code>"none"</code>, <code>"x"</code>, <code>"xy"</code>, <code>"y"</code> | Specifies which axis should have tick line, `'y'` by default |
|
||||
| <code>tooltipAnimationDuration</code> | no | <code>number</code> | — | Tooltip position animation duration in ms, `0` by default |
|
||||
| <code>tooltipProps</code> | no | <code>Omit<TooltipProps<any, any>, "ref"></code> | — | Props passed down to the `Tooltip` component |
|
||||
| <code>unit</code> | no | <code>string</code> | — | Unit displayed next to each tick in y-axis |
|
||||
| <code>unstyled</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>withDots</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether dots should be displayed |
|
||||
| <code>withGradient</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether the chart area should be represented with a gradient instead of the solid color |
|
||||
| <code>withLegend</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether chart legend should be displayed, `false` by default |
|
||||
| <code>withPointLabels</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | If set, each point has an associated label |
|
||||
| <code>withRightYAxis</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether additional y-axis should be displayed on the right side of the chart, `false` by default |
|
||||
| <code>withTooltip</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether chart tooltip should be displayed, `true` by default |
|
||||
| <code>withXAxis</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether x-axis should be displayed, `true` by default |
|
||||
| <code>withYAxis</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether y-axis should be displayed, `true` by default |
|
||||
| <code>xAxisLabel</code> | no | <code>string</code> | — | A label to display below the x-axis |
|
||||
| <code>xAxisProps</code> | no | <code>Omit<XAxisProps, "ref"></code> | — | Props passed down to the `XAxis` recharts component |
|
||||
| <code>yAxisLabel</code> | no | <code>string</code> | — | A label to display next to the y-axis |
|
||||
| <code>yAxisProps</code> | no | <code>Omit<YAxisProps, "ref"></code> | — | Props passed down to the `YAxis` recharts component |
|
||||
|
||||
<a id="component-areagradient"></a>
|
||||
### `AreaGradient`
|
||||
|
||||
- Safety: `denied`
|
||||
- Category: `blocked`
|
||||
- Documentation: [upstream component API](https://mantine.dev/charts/area-gradient/)
|
||||
- Temporary bind: not available
|
||||
- Subcomponents: none
|
||||
- Component-specific blocked props: none
|
||||
- Accessibility:
|
||||
- No additional catalog requirement; preserve semantic labels and text alternatives.
|
||||
|
||||
Denied reason: Low-level chart implementation helper.
|
||||
|
||||
#### Component-specific props
|
||||
|
||||
_No authorable props because this component is denied._
|
||||
|
||||
<a id="component-barchart"></a>
|
||||
### `BarChart`
|
||||
|
||||
- Safety: `wrapped`
|
||||
- Category: `charts`
|
||||
- Documentation: [upstream component API](https://mantine.dev/charts/bar-chart/)
|
||||
- Temporary bind: not available
|
||||
- Subcomponents: none
|
||||
- Component-specific blocked props: none
|
||||
- Accessibility:
|
||||
- Include a nearby text summary of the chart data.
|
||||
|
||||
#### Component-specific props
|
||||
|
||||
| Prop | Required | Type | Literal values | Description |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| <code>attributes</code> | no | <code>{ legend?: Record<string, any>; grid?: Record<string, any>; root?: Record<string, any>; tooltip?: Record<string, any>; ... 14 more ...; tooltipBody?: Record<...>; }</code> | — | — |
|
||||
| <code>barChartProps</code> | no | <code>(CartesianChartProps<unknown> & { ref?: React.Ref<SVGSVGElement>; })</code> | — | Props passed down to recharts `BarChart` component |
|
||||
| <code>barLabelColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Controls color of the bar label, by default the value is determined by the chart orientation |
|
||||
| <code>cursorFill</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Fill of hovered bar section, by default value is based on color scheme |
|
||||
| <code>data</code> | yes | <code>Record<string, any>[]</code> | — | Data used to display chart. |
|
||||
| <code>dataKey</code> | yes | <code>string</code> | — | Key of the `data` object for x-axis values |
|
||||
| <code>gridAxis</code> | no | <code>"none" | "x" | "y" | "xy"</code> | <code>"none"</code>, <code>"x"</code>, <code>"xy"</code>, <code>"y"</code> | Specifies which lines should be displayed in the grid, `'x'` by default |
|
||||
| <code>gridColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Color of the grid and cursor lines, by default depends on color scheme |
|
||||
| <code>gridProps</code> | no | <code>Omit<CartesianGridProps, "ref"></code> | — | Props passed down to the `CartesianGrid` component |
|
||||
| <code>legendProps</code> | no | <code>Omit<LegendProps, "ref"></code> | — | Props passed down to the `Legend` component |
|
||||
| <code>maxBarWidth</code> | no | <code>number</code> | — | Maximum bar width in px |
|
||||
| <code>minBarSize</code> | no | <code>number</code> | — | Sets minimum height of the bar in px |
|
||||
| <code>referenceLines</code> | no | <code>ChartReferenceLineProps[]</code> | — | Reference lines that should be displayed on the chart |
|
||||
| <code>rightYAxisLabel</code> | no | <code>string</code> | — | A label to display next to the right y-axis |
|
||||
| <code>rightYAxisProps</code> | no | <code>Omit<YAxisProps, "ref"></code> | — | Props passed down to the `YAxis` recharts component rendered on the right side |
|
||||
| <code>series</code> | yes | <code>BarChartSeries[]</code> | — | An array of objects with `name` and `color` keys. Determines which data should be consumed from the `data` array. |
|
||||
| <code>textColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Color of the text displayed inside the chart, `'dimmed'` by default |
|
||||
| <code>tickLine</code> | no | <code>"none" | "x" | "y" | "xy"</code> | <code>"none"</code>, <code>"x"</code>, <code>"xy"</code>, <code>"y"</code> | Specifies which axis should have tick line, `'y'` by default |
|
||||
| <code>tooltipAnimationDuration</code> | no | <code>number</code> | — | Tooltip position animation duration in ms, `0` by default |
|
||||
| <code>tooltipProps</code> | no | <code>Omit<TooltipProps<any, any>, "ref"></code> | — | Props passed down to the `Tooltip` component |
|
||||
| <code>unit</code> | no | <code>string</code> | — | Unit displayed next to each tick in y-axis |
|
||||
| <code>unstyled</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>withBarValueLabel</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether a label with bar value should be displayed on top of each bar, incompatible with `type="stacked"` and `type="percent"` |
|
||||
| <code>withLegend</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether chart legend should be displayed, `false` by default |
|
||||
| <code>withRightYAxis</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether additional y-axis should be displayed on the right side of the chart, `false` by default |
|
||||
| <code>withTooltip</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether chart tooltip should be displayed, `true` by default |
|
||||
| <code>withXAxis</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether x-axis should be displayed, `true` by default |
|
||||
| <code>withYAxis</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether y-axis should be displayed, `true` by default |
|
||||
| <code>xAxisLabel</code> | no | <code>string</code> | — | A label to display below the x-axis |
|
||||
| <code>xAxisProps</code> | no | <code>Omit<XAxisProps, "ref"></code> | — | Props passed down to the `XAxis` recharts component |
|
||||
| <code>yAxisLabel</code> | no | <code>string</code> | — | A label to display next to the y-axis |
|
||||
| <code>yAxisProps</code> | no | <code>Omit<YAxisProps, "ref"></code> | — | Props passed down to the `YAxis` recharts component |
|
||||
|
||||
<a id="component-barslist"></a>
|
||||
### `BarsList`
|
||||
|
||||
- Safety: `wrapped`
|
||||
- Category: `charts`
|
||||
- Documentation: [upstream component API](https://mantine.dev/charts/bars-list/)
|
||||
- Temporary bind: not available
|
||||
- Subcomponents: none
|
||||
- Component-specific blocked props: none
|
||||
- Accessibility:
|
||||
- Include a nearby text summary of the chart data.
|
||||
|
||||
#### Component-specific props
|
||||
|
||||
| Prop | Required | Type | Literal values | Description |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| <code>attributes</code> | no | <code>{ root?: Record<string, any>; bar?: Record<string, any>; barLabel?: Record<string, any>; barValue?: Record<string, any>; labelsRow?: Record<...>; }</code> | — | — |
|
||||
| <code>autoContrast</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | If set, adjusts text color based on background color |
|
||||
| <code>barColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Default bar background color, used when item does not have color specified |
|
||||
| <code>barGap</code> | no | <code>MantineSpacing</code> | <code>"lg"</code>, <code>"md"</code>, <code>"sm"</code>, <code>"xl"</code>, <code>"xs"</code> | Controls gap between bars |
|
||||
| <code>barHeight</code> | no | <code>string | number</code> | — | Bar height |
|
||||
| <code>barTextColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Bar text color, overrides autoContrast |
|
||||
| <code>barsLabel</code> | no | <code>string</code> | — | Label displayed above the bars column |
|
||||
| <code>data</code> | yes | <code>BarsListBarData[]</code> | — | Data for bars |
|
||||
| <code>minBarSize</code> | no | <code>string | number</code> | — | Minimum bar width |
|
||||
| <code>unstyled</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>valueLabel</code> | no | <code>string</code> | — | Label displayed above the values column |
|
||||
|
||||
<a id="component-bubblechart"></a>
|
||||
### `BubbleChart`
|
||||
|
||||
- Safety: `wrapped`
|
||||
- Category: `charts`
|
||||
- Documentation: [upstream component API](https://mantine.dev/charts/bubble-chart/)
|
||||
- Temporary bind: not available
|
||||
- Subcomponents: none
|
||||
- Component-specific blocked props: none
|
||||
- Accessibility:
|
||||
- Include a nearby text summary of the chart data.
|
||||
|
||||
#### Component-specific props
|
||||
|
||||
| Prop | Required | Type | Literal values | Description |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| <code>attributes</code> | no | <code>{ root?: Record<string, any>; tooltip?: Record<string, any>; axis?: Record<string, any>; }</code> | — | — |
|
||||
| <code>data</code> | yes | <code>Record<string, any>[]</code> | — | Chart data |
|
||||
| <code>dataKey</code> | yes | <code>BubbleChartDataKey</code> | — | Data keys for x, y and z axis |
|
||||
| <code>gridColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Color of the grid and cursor lines, by default depends on color scheme |
|
||||
| <code>label</code> | no | <code>string</code> | — | Chart label displayed next to the x axis |
|
||||
| <code>range</code> | yes | <code>[number, number]</code> | — | Z axis range |
|
||||
| <code>scatterProps</code> | no | <code>Partial<Omit<ScatterProps, "ref">></code> | — | Props passed down to the `Scatter` component |
|
||||
| <code>textColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Color of the text displayed inside the chart |
|
||||
| <code>tooltipProps</code> | no | <code>Omit<TooltipProps<any, any>, "ref"></code> | — | Props passed down to the `Tooltip` component |
|
||||
| <code>unstyled</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>withTooltip</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether the tooltip should be displayed |
|
||||
| <code>xAxisProps</code> | no | <code>Omit<XAxisProps, "ref"></code> | — | Props passed down to the `XAxis` recharts component |
|
||||
| <code>yAxisProps</code> | no | <code>Omit<YAxisProps, "ref"></code> | — | Props passed down to the `YAxis` recharts component |
|
||||
| <code>zAxisProps</code> | no | <code>Omit<ZAxisProps<any, any>, "ref"></code> | — | Props passed down to the `ZAxis` recharts component |
|
||||
|
||||
<a id="component-chartlegend"></a>
|
||||
### `ChartLegend`
|
||||
|
||||
- Safety: `wrapped`
|
||||
- Category: `charts`
|
||||
- Documentation: [upstream component API](https://mantine.dev/charts/chart-legend/)
|
||||
- Temporary bind: not available
|
||||
- Subcomponents: none
|
||||
- Component-specific blocked props: none
|
||||
- Accessibility:
|
||||
- Include a nearby text summary of the chart data.
|
||||
|
||||
#### Component-specific props
|
||||
|
||||
| Prop | Required | Type | Literal values | Description |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| <code>attributes</code> | no | <code>{ legend?: Record<string, any>; legendItem?: Record<string, any>; legendItemColor?: Record<string, any>; legendItemName?: Record<...>; }</code> | — | — |
|
||||
| <code>centered</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether the legend should be centered |
|
||||
| <code>legendPosition</code> | yes | <code>"bottom" | "top" | "middle"</code> | <code>"bottom"</code>, <code>"middle"</code>, <code>"top"</code> | Position of the legend relative to the chart, used to apply margin on the corresponding side |
|
||||
| <code>payload</code> | no | <code>readonly Record<string, any>[]</code> | — | Chart data provided by recharts |
|
||||
| <code>series</code> | no | <code>ChartSeries[]</code> | — | Data used for labels, only applicable for area charts: AreaChart, LineChart, BarChart |
|
||||
| <code>showColor</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether color swatch should be shown next to the label |
|
||||
| <code>unstyled</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
|
||||
<a id="component-charttooltip"></a>
|
||||
### `ChartTooltip`
|
||||
|
||||
- Safety: `wrapped`
|
||||
- Category: `charts`
|
||||
- Documentation: [upstream component API](https://mantine.dev/charts/chart-tooltip/)
|
||||
- Temporary bind: not available
|
||||
- Subcomponents: none
|
||||
- Component-specific blocked props: none
|
||||
- Accessibility:
|
||||
- Include a nearby text summary of the chart data.
|
||||
|
||||
#### Component-specific props
|
||||
|
||||
| Prop | Required | Type | Literal values | Description |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| <code>attributes</code> | no | <code>{ tooltip?: Record<string, any>; tooltipItem?: Record<string, any>; tooltipItemBody?: Record<string, any>; tooltipItemColor?: Record<...>; tooltipItemName?: Record<...>; tooltipItemData?: Record<...>; tooltipLabel?: Record<...>; tool...</code> | — | — |
|
||||
| <code>label</code> | no | <code>React.ReactNode</code> | — | Main tooltip label |
|
||||
| <code>payload</code> | no | <code>Record<string, any>[] | readonly Record<string, any>[]</code> | — | Chart data provided by recharts |
|
||||
| <code>segmentId</code> | no | <code>string | number</code> | — | Segment to display data for, identified by its index in the data array (preferred, isolates duplicate names) or by its name. Only applicable when `type="radial"`. If not set, all data is rendered. |
|
||||
| <code>series</code> | no | <code>ChartSeries[]</code> | — | Chart series data, applicable only for `area` type |
|
||||
| <code>showColor</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether the color swatch should be visible |
|
||||
| <code>unit</code> | no | <code>string</code> | — | Data units, provided by parent component |
|
||||
| <code>unstyled</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
|
||||
<a id="component-compositechart"></a>
|
||||
### `CompositeChart`
|
||||
|
||||
- Safety: `wrapped`
|
||||
- Category: `charts`
|
||||
- Documentation: [upstream component API](https://mantine.dev/charts/composite-chart/)
|
||||
- Temporary bind: not available
|
||||
- Subcomponents: none
|
||||
- Component-specific blocked props: none
|
||||
- Accessibility:
|
||||
- Include a nearby text summary of the chart data.
|
||||
|
||||
#### Component-specific props
|
||||
|
||||
| Prop | Required | Type | Literal values | Description |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| <code>activeDotProps</code> | no | <code>MantineChartDotProps</code> | — | Props passed down to all active dots. Ignored if `withDots={false}` is set. |
|
||||
| <code>attributes</code> | no | <code>{ area?: Record<string, any>; legend?: Record<string, any>; line?: Record<string, any>; grid?: Record<string, any>; ... 16 more ...; tooltipBody?: Record<...>; }</code> | — | — |
|
||||
| <code>composedChartProps</code> | no | <code>(CartesianChartProps<unknown> & { ref?: React.Ref<SVGSVGElement>; })</code> | — | Props passed down to recharts `AreaChart` component |
|
||||
| <code>connectNulls</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether points with `null` values should be connected |
|
||||
| <code>curveType</code> | no | <code>"step" | "bump" | "linear" | "natural" | "monotone" | "stepBefore" | "stepAfter"</code> | <code>"bump"</code>, <code>"linear"</code>, <code>"monotone"</code>, <code>"natural"</code>, <code>"step"</code>, <code>"stepAfter"</code>, <code>"stepBefore"</code> | Type of the curve |
|
||||
| <code>data</code> | yes | <code>Record<string, any>[]</code> | — | Data used to display chart |
|
||||
| <code>dataKey</code> | yes | <code>string</code> | — | Key of the `data` object for x-axis values |
|
||||
| <code>dotProps</code> | no | <code>MantineChartDotProps</code> | — | Props passed down to all dots. Ignored if `withDots={false}` is set. |
|
||||
| <code>gridAxis</code> | no | <code>"none" | "x" | "y" | "xy"</code> | <code>"none"</code>, <code>"x"</code>, <code>"xy"</code>, <code>"y"</code> | Specifies which lines should be displayed in the grid, `'x'` by default |
|
||||
| <code>gridColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Color of the grid and cursor lines, by default depends on color scheme |
|
||||
| <code>gridProps</code> | no | <code>Omit<CartesianGridProps, "ref"></code> | — | Props passed down to the `CartesianGrid` component |
|
||||
| <code>legendProps</code> | no | <code>Omit<LegendProps, "ref"></code> | — | Props passed down to the `Legend` component |
|
||||
| <code>maxBarWidth</code> | no | <code>number</code> | — | Maximum bar width in px |
|
||||
| <code>minBarSize</code> | no | <code>number</code> | — | Sets minimum height of the bar in px |
|
||||
| <code>referenceLines</code> | no | <code>ChartReferenceLineProps[]</code> | — | Reference lines that should be displayed on the chart |
|
||||
| <code>rightYAxisLabel</code> | no | <code>string</code> | — | A label to display next to the right y-axis |
|
||||
| <code>rightYAxisProps</code> | no | <code>Omit<YAxisProps, "ref"></code> | — | Props passed down to the `YAxis` recharts component rendered on the right side |
|
||||
| <code>series</code> | yes | <code>CompositeChartSeries[]</code> | — | An array of objects with `name` and `color` keys. Determines which data should be consumed from the `data` array. |
|
||||
| <code>textColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Color of the text displayed inside the chart, `'dimmed'` by default |
|
||||
| <code>tickLine</code> | no | <code>"none" | "x" | "y" | "xy"</code> | <code>"none"</code>, <code>"x"</code>, <code>"xy"</code>, <code>"y"</code> | Specifies which axis should have tick line, `'y'` by default |
|
||||
| <code>tooltipAnimationDuration</code> | no | <code>number</code> | — | Tooltip position animation duration in ms, `0` by default |
|
||||
| <code>tooltipProps</code> | no | <code>Omit<TooltipProps<any, any>, "ref"></code> | — | Props passed down to the `Tooltip` component |
|
||||
| <code>unit</code> | no | <code>string</code> | — | Unit displayed next to each tick in y-axis |
|
||||
| <code>unstyled</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>withBarValueLabel</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether a label with bar value should be displayed on top of each bar |
|
||||
| <code>withDots</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether dots should be displayed |
|
||||
| <code>withLegend</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether chart legend should be displayed, `false` by default |
|
||||
| <code>withPointLabels</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether each point should have associated label |
|
||||
| <code>withRightYAxis</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether additional y-axis should be displayed on the right side of the chart, `false` by default |
|
||||
| <code>withTooltip</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether chart tooltip should be displayed, `true` by default |
|
||||
| <code>withXAxis</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether x-axis should be displayed, `true` by default |
|
||||
| <code>withYAxis</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether y-axis should be displayed, `true` by default |
|
||||
| <code>xAxisLabel</code> | no | <code>string</code> | — | A label to display below the x-axis |
|
||||
| <code>xAxisProps</code> | no | <code>Omit<XAxisProps, "ref"></code> | — | Props passed down to the `XAxis` recharts component |
|
||||
| <code>yAxisLabel</code> | no | <code>string</code> | — | A label to display next to the y-axis |
|
||||
| <code>yAxisProps</code> | no | <code>Omit<YAxisProps, "ref"></code> | — | Props passed down to the `YAxis` recharts component |
|
||||
|
||||
<a id="component-donutchart"></a>
|
||||
### `DonutChart`
|
||||
|
||||
- Safety: `wrapped`
|
||||
- Category: `charts`
|
||||
- Documentation: [upstream component API](https://mantine.dev/charts/donut-chart/)
|
||||
- Temporary bind: not available
|
||||
- Subcomponents: none
|
||||
- Component-specific blocked props: none
|
||||
- Accessibility:
|
||||
- Include a nearby text summary of the chart data.
|
||||
|
||||
#### Component-specific props
|
||||
|
||||
| Prop | Required | Type | Literal values | Description |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| <code>attributes</code> | no | <code>{ label?: Record<string, any>; legend?: Record<string, any>; root?: Record<string, any>; tooltip?: Record<string, any>; ... 9 more ...; tooltipBody?: Record<...>; }</code> | — | — |
|
||||
| <code>chartLabel</code> | no | <code>string | number</code> | — | Chart label, displayed in the center of the chart |
|
||||
| <code>data</code> | yes | <code>DonutChartCell[]</code> | — | Data used to render chart |
|
||||
| <code>endAngle</code> | no | <code>number</code> | — | Controls angle at which charts ends. Set to `0` to render the chart as semicircle. |
|
||||
| <code>labelColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Controls text color of all labels, by default depends on color scheme |
|
||||
| <code>labelsType</code> | no | <code>"value" | "name" | "percent"</code> | <code>"name"</code>, <code>"percent"</code>, <code>"value"</code> | Type of labels to display, `'value'` by default |
|
||||
| <code>legendProps</code> | no | <code>Omit<LegendProps, "ref"></code> | — | Props passed down to recharts `Legend` component |
|
||||
| <code>paddingAngle</code> | no | <code>number</code> | — | Controls padding between segments |
|
||||
| <code>pieChartProps</code> | no | <code>(PolarChartProps<unknown> & { ref?: React.Ref<SVGSVGElement>; })</code> | — | Props passed down to recharts `PieChart` component |
|
||||
| <code>pieProps</code> | no | <code>Partial<Omit<PieProps, "ref">></code> | — | Props passed down to recharts `Pie` component |
|
||||
| <code>startAngle</code> | no | <code>number</code> | — | Controls angle at which chart starts. Set to `180` to render the chart as semicircle. |
|
||||
| <code>strokeColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Controls color of the segments stroke, by default depends on color scheme |
|
||||
| <code>thickness</code> | no | <code>number</code> | — | Controls thickness of the chart segments |
|
||||
| <code>tooltipAnimationDuration</code> | no | <code>number</code> | — | Tooltip animation duration in ms |
|
||||
| <code>tooltipDataSource</code> | no | <code>"all" | "segment"</code> | <code>"all"</code>, <code>"segment"</code> | Determines which data is displayed in the tooltip. `'all'` – display all values, `'segment'` – display only hovered segment. |
|
||||
| <code>tooltipProps</code> | no | <code>Omit<TooltipProps<any, any>, "ref"></code> | — | Props passed down to `Tooltip` recharts component |
|
||||
| <code>unstyled</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>withLabels</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether each segment should have associated label |
|
||||
| <code>withLabelsLine</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether segments labels should have lines that connect the segment with the label |
|
||||
| <code>withLegend</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether the legend should be displayed |
|
||||
| <code>withTooltip</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether the tooltip should be displayed when one of the section is hovered |
|
||||
|
||||
<a id="component-funnelchart"></a>
|
||||
### `FunnelChart`
|
||||
|
||||
- Safety: `wrapped`
|
||||
- Category: `charts`
|
||||
- Documentation: [upstream component API](https://mantine.dev/charts/funnel-chart/)
|
||||
- Temporary bind: not available
|
||||
- Subcomponents: none
|
||||
- Component-specific blocked props: none
|
||||
- Accessibility:
|
||||
- Include a nearby text summary of the chart data.
|
||||
|
||||
#### Component-specific props
|
||||
|
||||
| Prop | Required | Type | Literal values | Description |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| <code>attributes</code> | no | <code>{ legend?: Record<string, any>; root?: Record<string, any>; tooltip?: Record<string, any>; legendItem?: Record<string, any>; ... 8 more ...; tooltipBody?: Record<...>; }</code> | — | — |
|
||||
| <code>data</code> | yes | <code>FunnelChartCell[]</code> | — | Data used to render chart |
|
||||
| <code>funnelChartProps</code> | no | <code>(CartesianChartProps<unknown> & { ref?: React.Ref<SVGSVGElement>; })</code> | — | Props passed down to recharts `FunnelChart` component |
|
||||
| <code>funnelProps</code> | no | <code>Partial<Omit<FunnelProps, "ref">></code> | — | Props passed down to recharts `Pie` component |
|
||||
| <code>labelColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Controls text color of all labels |
|
||||
| <code>labelsPosition</code> | no | <code>"left" | "right" | "inside"</code> | <code>"inside"</code>, <code>"left"</code>, <code>"right"</code> | Controls labels position relative to the segment |
|
||||
| <code>legendProps</code> | no | <code>Omit<LegendProps, "ref"></code> | — | Props passed down to recharts `Legend` component |
|
||||
| <code>strokeColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Controls color of the segments stroke, by default depends on color scheme |
|
||||
| <code>tooltipAnimationDuration</code> | no | <code>number</code> | — | Tooltip animation duration in ms |
|
||||
| <code>tooltipDataSource</code> | no | <code>"all" | "segment"</code> | <code>"all"</code>, <code>"segment"</code> | Determines which data is displayed in the tooltip. `'all'` – display all values, `'segment'` – display only hovered segment. |
|
||||
| <code>tooltipProps</code> | no | <code>Omit<TooltipProps<any, any>, "ref"></code> | — | Props passed down to `Tooltip` recharts component |
|
||||
| <code>unstyled</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>withLabels</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether each segment should have associated label |
|
||||
| <code>withLegend</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether the legend should be displayed |
|
||||
| <code>withTooltip</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether the tooltip should be displayed when a section is hovered |
|
||||
|
||||
<a id="component-heatmap"></a>
|
||||
### `Heatmap`
|
||||
|
||||
- Safety: `wrapped`
|
||||
- Category: `charts`
|
||||
- Documentation: [upstream component API](https://mantine.dev/charts/heatmap/)
|
||||
- Temporary bind: not available
|
||||
- Subcomponents: none
|
||||
- Component-specific blocked props: none
|
||||
- Accessibility:
|
||||
- Include a nearby text summary of the chart data.
|
||||
|
||||
#### Component-specific props
|
||||
|
||||
| Prop | Required | Type | Literal values | Description |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| <code>attributes</code> | no | <code>{ legend?: Record<string, any>; rect?: Record<string, any>; root?: Record<string, any>; weekdayLabel?: Record<string, any>; monthLabel?: Record<...>; legendLabel?: Record<...>; legendRect?: Record<...>; }</code> | — | — |
|
||||
| <code>colors</code> | no | <code>string[]</code> | — | Colors array, used to calculate color for each value, by default 4 shades of green colors are used |
|
||||
| <code>data</code> | yes | <code>Record<string, number></code> | — | Heatmap data, key is date in `YYYY-MM-DD` format (interpreted as a UTC calendar day) |
|
||||
| <code>domain</code> | no | <code>[number, number]</code> | — | Heatmap domain, array of 2 numbers, min and max values, calculated from data by default |
|
||||
| <code>endDate</code> | no | <code>string | Date</code> | — | Heatmap end date. Current date by default. Date is normalized to UTC midnight of the intended calendar day. |
|
||||
| <code>firstDayOfWeek</code> | no | <code>0 | 2 | 3 | 4 | 5 | 6 | 1</code> | <code>0</code>, <code>1</code>, <code>2</code>, <code>3</code>, <code>4</code>, <code>5</code>, <code>6</code> | First day of week, 0 – Sunday, 1 – Monday. |
|
||||
| <code>gap</code> | no | <code>number</code> | — | Gap between rects in px |
|
||||
| <code>legendLabels</code> | no | <code>[string, string]</code> | — | Legend labels, array of 2 elements: [min label, max label] |
|
||||
| <code>monthLabels</code> | no | <code>string[]</code> | — | Month labels, array of 12 elements, can be used for localization |
|
||||
| <code>monthsLabelsHeight</code> | no | <code>number</code> | — | Height of month labels row |
|
||||
| <code>rectRadius</code> | no | <code>number</code> | — | Rect radius in px |
|
||||
| <code>rectSize</code> | no | <code>number</code> | — | Size of day rect in px |
|
||||
| <code>splitMonths</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | If set, inserts a spacer column between months |
|
||||
| <code>startDate</code> | no | <code>string | Date</code> | — | Heatmap start date. Current date - 1 year by default. Date is normalized to UTC midnight of the intended calendar day. |
|
||||
| <code>tooltipProps</code> | no | <code>Partial<TooltipFloatingProps></code> | — | Props passed down to the `Tooltip.Floating` component |
|
||||
| <code>unstyled</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>weekdayLabels</code> | no | <code>string[]</code> | — | Weekday labels, array of 7 elements, can be used for localization |
|
||||
| <code>weekdaysLabelsWidth</code> | no | <code>number</code> | — | Width of weekday labels column |
|
||||
| <code>withLegend</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | If set, legend with color levels is displayed below the heatmap |
|
||||
| <code>withMonthLabels</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | If set, month labels are displayed |
|
||||
| <code>withOutsideDates</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | If set, trailing dates that do not fall into the given `startDate` – `endDate` range are displayed to fill empty space. |
|
||||
| <code>withTooltip</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | If set, tooltip is displayed on rect hover |
|
||||
| <code>withWeekdayLabels</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | If set, weekday labels are displayed |
|
||||
|
||||
<a id="component-linechart"></a>
|
||||
### `LineChart`
|
||||
|
||||
- Safety: `wrapped`
|
||||
- Category: `charts`
|
||||
- Documentation: [upstream component API](https://mantine.dev/charts/line-chart/)
|
||||
- Temporary bind: not available
|
||||
- Subcomponents: none
|
||||
- Component-specific blocked props: none
|
||||
- Accessibility:
|
||||
- Include a nearby text summary of the chart data.
|
||||
|
||||
#### Component-specific props
|
||||
|
||||
| Prop | Required | Type | Literal values | Description |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| <code>activeDotProps</code> | no | <code>MantineChartDotProps</code> | — | Props passed down to all active dots. Ignored if `withDots={false}` is set. |
|
||||
| <code>attributes</code> | no | <code>{ legend?: Record<string, any>; line?: Record<string, any>; grid?: Record<string, any>; root?: Record<string, any>; ... 14 more ...; tooltipBody?: Record<...>; }</code> | — | — |
|
||||
| <code>connectNulls</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether points with `null` values should be connected |
|
||||
| <code>curveType</code> | no | <code>"step" | "bump" | "linear" | "natural" | "monotone" | "stepBefore" | "stepAfter"</code> | <code>"bump"</code>, <code>"linear"</code>, <code>"monotone"</code>, <code>"natural"</code>, <code>"step"</code>, <code>"stepAfter"</code>, <code>"stepBefore"</code> | Type of the curve |
|
||||
| <code>data</code> | yes | <code>Record<string, any>[]</code> | — | Data used to display chart |
|
||||
| <code>dataKey</code> | yes | <code>string</code> | — | Key of the `data` object for x-axis values |
|
||||
| <code>dotProps</code> | no | <code>MantineChartDotProps</code> | — | Props passed down to all dots. Ignored if `withDots={false}` is set. |
|
||||
| <code>gradientStops</code> | no | <code>LineChartGradientStop[]</code> | — | Data used to generate gradient stops |
|
||||
| <code>gridAxis</code> | no | <code>"none" | "x" | "y" | "xy"</code> | <code>"none"</code>, <code>"x"</code>, <code>"xy"</code>, <code>"y"</code> | Specifies which lines should be displayed in the grid, `'x'` by default |
|
||||
| <code>gridColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Color of the grid and cursor lines, by default depends on color scheme |
|
||||
| <code>gridProps</code> | no | <code>Omit<CartesianGridProps, "ref"></code> | — | Props passed down to the `CartesianGrid` component |
|
||||
| <code>legendProps</code> | no | <code>Omit<LegendProps, "ref"></code> | — | Props passed down to the `Legend` component |
|
||||
| <code>lineChartProps</code> | no | <code>(CartesianChartProps<unknown> & { ref?: React.Ref<SVGSVGElement>; })</code> | — | Props passed down to recharts `LineChart` component |
|
||||
| <code>referenceLines</code> | no | <code>ChartReferenceLineProps[]</code> | — | Reference lines that should be displayed on the chart |
|
||||
| <code>rightYAxisLabel</code> | no | <code>string</code> | — | A label to display next to the right y-axis |
|
||||
| <code>rightYAxisProps</code> | no | <code>Omit<YAxisProps, "ref"></code> | — | Props passed down to the `YAxis` recharts component rendered on the right side |
|
||||
| <code>series</code> | yes | <code>LineChartSeries[]</code> | — | An array of objects with `name` and `color` keys. Determines which data should be consumed from the `data` array. |
|
||||
| <code>textColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Color of the text displayed inside the chart, `'dimmed'` by default |
|
||||
| <code>tickLine</code> | no | <code>"none" | "x" | "y" | "xy"</code> | <code>"none"</code>, <code>"x"</code>, <code>"xy"</code>, <code>"y"</code> | Specifies which axis should have tick line, `'y'` by default |
|
||||
| <code>tooltipAnimationDuration</code> | no | <code>number</code> | — | Tooltip position animation duration in ms, `0` by default |
|
||||
| <code>tooltipProps</code> | no | <code>Omit<TooltipProps<any, any>, "ref"></code> | — | Props passed down to the `Tooltip` component |
|
||||
| <code>unit</code> | no | <code>string</code> | — | Unit displayed next to each tick in y-axis |
|
||||
| <code>unstyled</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>withDots</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether dots should be displayed |
|
||||
| <code>withLegend</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether chart legend should be displayed, `false` by default |
|
||||
| <code>withPointLabels</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether each point should have associated label |
|
||||
| <code>withRightYAxis</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether additional y-axis should be displayed on the right side of the chart, `false` by default |
|
||||
| <code>withTooltip</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether chart tooltip should be displayed, `true` by default |
|
||||
| <code>withXAxis</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether x-axis should be displayed, `true` by default |
|
||||
| <code>withYAxis</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether y-axis should be displayed, `true` by default |
|
||||
| <code>xAxisLabel</code> | no | <code>string</code> | — | A label to display below the x-axis |
|
||||
| <code>xAxisProps</code> | no | <code>Omit<XAxisProps, "ref"></code> | — | Props passed down to the `XAxis` recharts component |
|
||||
| <code>yAxisLabel</code> | no | <code>string</code> | — | A label to display next to the y-axis |
|
||||
| <code>yAxisProps</code> | no | <code>Omit<YAxisProps, "ref"></code> | — | Props passed down to the `YAxis` recharts component |
|
||||
|
||||
<a id="component-piechart"></a>
|
||||
### `PieChart`
|
||||
|
||||
- Safety: `wrapped`
|
||||
- Category: `charts`
|
||||
- Documentation: [upstream component API](https://mantine.dev/charts/pie-chart/)
|
||||
- Temporary bind: not available
|
||||
- Subcomponents: none
|
||||
- Component-specific blocked props: none
|
||||
- Accessibility:
|
||||
- Include a nearby text summary of the chart data.
|
||||
|
||||
#### Component-specific props
|
||||
|
||||
| Prop | Required | Type | Literal values | Description |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| <code>attributes</code> | no | <code>{ legend?: Record<string, any>; root?: Record<string, any>; tooltip?: Record<string, any>; legendItem?: Record<string, any>; ... 8 more ...; tooltipBody?: Record<...>; }</code> | — | — |
|
||||
| <code>data</code> | yes | <code>PieChartCell[]</code> | — | Data used to render chart |
|
||||
| <code>endAngle</code> | no | <code>number</code> | — | Controls angle at which charts ends. Set to `0` to render the chart as semicircle. |
|
||||
| <code>labelColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Controls text color of all labels, white by default |
|
||||
| <code>labelsPosition</code> | no | <code>"inside" | "outside"</code> | <code>"inside"</code>, <code>"outside"</code> | Controls labels position relative to the segment |
|
||||
| <code>labelsType</code> | no | <code>"value" | "name" | "percent"</code> | <code>"name"</code>, <code>"percent"</code>, <code>"value"</code> | Type of labels to display |
|
||||
| <code>legendProps</code> | no | <code>Omit<LegendProps, "ref"></code> | — | Props passed down to recharts `Legend` component |
|
||||
| <code>paddingAngle</code> | no | <code>number</code> | — | Controls padding between segments |
|
||||
| <code>pieChartProps</code> | no | <code>(PolarChartProps<unknown> & { ref?: React.Ref<SVGSVGElement>; })</code> | — | Props passed down to recharts `PieChart` component |
|
||||
| <code>pieProps</code> | no | <code>Partial<Omit<PieProps, "ref">></code> | — | Props passed down to recharts `Pie` component |
|
||||
| <code>startAngle</code> | no | <code>number</code> | — | Controls angle at which chart starts. Set to `180` to render the chart as semicircle. |
|
||||
| <code>strokeColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Controls color of the segments stroke, by default depends on color scheme |
|
||||
| <code>tooltipAnimationDuration</code> | no | <code>number</code> | — | Tooltip animation duration in ms |
|
||||
| <code>tooltipDataSource</code> | no | <code>"all" | "segment"</code> | <code>"all"</code>, <code>"segment"</code> | Determines which data is displayed in the tooltip. `'all'` – display all values, `'segment'` – display only hovered segment. |
|
||||
| <code>tooltipProps</code> | no | <code>Omit<TooltipProps<any, any>, "ref"></code> | — | Props passed down to `Tooltip` recharts component |
|
||||
| <code>unstyled</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>withLabels</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether each segment should have associated label |
|
||||
| <code>withLabelsLine</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether segments labels should have lines that connect the segment with the label |
|
||||
| <code>withLegend</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether the legend should be displayed |
|
||||
| <code>withTooltip</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether the tooltip should be displayed when one of the section is hovered |
|
||||
|
||||
<a id="component-radarchart"></a>
|
||||
### `RadarChart`
|
||||
|
||||
- Safety: `wrapped`
|
||||
- Category: `charts`
|
||||
- Documentation: [upstream component API](https://mantine.dev/charts/radar-chart/)
|
||||
- Temporary bind: not available
|
||||
- Subcomponents: none
|
||||
- Component-specific blocked props: none
|
||||
- Accessibility:
|
||||
- Include a nearby text summary of the chart data.
|
||||
|
||||
#### Component-specific props
|
||||
|
||||
| Prop | Required | Type | Literal values | Description |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| <code>activeDotProps</code> | no | <code>MantineChartDotProps</code> | — | Props passed down to all active dots. Ignored if `withDots={false}` is set. |
|
||||
| <code>attributes</code> | no | <code>{ legend?: Record<string, any>; root?: Record<string, any>; tooltip?: Record<string, any>; container?: Record<string, any>; ... 9 more ...; tooltipBody?: Record<...>; }</code> | — | — |
|
||||
| <code>data</code> | yes | <code>Record<string, any>[]</code> | — | Data used in the chart |
|
||||
| <code>dataKey</code> | yes | <code>string</code> | — | Key of the `data` object for axis values |
|
||||
| <code>dotProps</code> | no | <code>MantineChartDotProps</code> | — | Props passed down to all dots. Ignored if `withDots={false}` is set. |
|
||||
| <code>gridColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Controls color of the grid lines. By default, color depends on the color scheme. |
|
||||
| <code>legendProps</code> | no | <code>Omit<LegendProps, "ref"></code> | — | Props passed down to recharts Legend component |
|
||||
| <code>polarAngleAxisProps</code> | no | <code>Omit<PolarAngleAxisProps, "ref"></code> | — | Props passed down to recharts PolarAngleAxis component |
|
||||
| <code>polarGridProps</code> | no | <code>Omit<PolarGridProps, "ref"></code> | — | Props passed down to recharts PolarGrid component |
|
||||
| <code>polarRadiusAxisProps</code> | no | <code>Omit<PolarRadiusAxisProps, "ref"></code> | — | Props passed down to recharts PolarRadiusAxis component |
|
||||
| <code>radarChartProps</code> | no | <code>(PolarChartProps<unknown> & { ref?: React.Ref<SVGSVGElement>; })</code> | — | Props passed down to recharts RadarChart component |
|
||||
| <code>series</code> | yes | <code>RadarChartSeries[]</code> | — | Determines which data should be consumed from the `data` array. |
|
||||
| <code>textColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Controls color of all text elements. By default, color depends on the color scheme. |
|
||||
| <code>tooltipAnimationDuration</code> | no | <code>number</code> | — | Tooltip position animation duration in ms |
|
||||
| <code>tooltipProps</code> | no | <code>Omit<TooltipProps<any, any>, "ref"></code> | — | Props passed down to recharts Tooltip component |
|
||||
| <code>unstyled</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>withDots</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether dots should be displayed |
|
||||
| <code>withLegend</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether the legend should be displayed |
|
||||
| <code>withPolarAngleAxis</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether PolarAngleAxis component should be displayed |
|
||||
| <code>withPolarGrid</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether PolarGrid component should be displayed |
|
||||
| <code>withPolarRadiusAxis</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether PolarRadiusAxisProps component should be displayed |
|
||||
| <code>withTooltip</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether Tooltip component should be displayed |
|
||||
|
||||
<a id="component-radialbarchart"></a>
|
||||
### `RadialBarChart`
|
||||
|
||||
- Safety: `wrapped`
|
||||
- Category: `charts`
|
||||
- Documentation: [upstream component API](https://mantine.dev/charts/radial-bar-chart/)
|
||||
- Temporary bind: not available
|
||||
- Subcomponents: none
|
||||
- Component-specific blocked props: none
|
||||
- Accessibility:
|
||||
- Include a nearby text summary of the chart data.
|
||||
|
||||
#### Component-specific props
|
||||
|
||||
| Prop | Required | Type | Literal values | Description |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| <code>attributes</code> | no | <code>{ legend?: Record<string, any>; root?: Record<string, any>; tooltip?: Record<string, any>; legendItem?: Record<string, any>; legendItemColor?: Record<...>; legendItemName?: Record<...>; }</code> | — | — |
|
||||
| <code>barSize</code> | no | <code>number</code> | — | Size of bars in px, `20` by default |
|
||||
| <code>data</code> | yes | <code>Record<string, any>[]</code> | — | Chart data |
|
||||
| <code>dataKey</code> | yes | <code>string</code> | — | Key from data object to use as data key |
|
||||
| <code>emptyBackgroundColor</code> | no | <code>string</code> | — | Color of the empty background, by default depends on the color scheme |
|
||||
| <code>endAngle</code> | no | <code>number</code> | — | Angle at which chart ends |
|
||||
| <code>legendProps</code> | no | <code>Omit<LegendProps, "ref"></code> | — | Props passed down to recharts Legend component |
|
||||
| <code>radialBarChartProps</code> | no | <code>(PolarChartProps<unknown> & { ref?: React.Ref<SVGSVGElement>; })</code> | — | Props passed down to recharts RadarChartChart component |
|
||||
| <code>radialBarProps</code> | no | <code>Omit<RadialBarProps, "ref"></code> | — | Props passed down to recharts RadialBar component |
|
||||
| <code>startAngle</code> | no | <code>number</code> | — | Angle at which chart starts |
|
||||
| <code>tooltipProps</code> | no | <code>Omit<TooltipProps<any, any>, "ref"></code> | — | Props passed down to `Tooltip` recharts component |
|
||||
| <code>unstyled</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>withBackground</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether empty bars area should be visible |
|
||||
| <code>withLabels</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether labels should be displayed |
|
||||
| <code>withLegend</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether the legend should be displayed |
|
||||
| <code>withTooltip</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether the tooltip should be displayed when one of the bars is hovered |
|
||||
|
||||
<a id="component-sankeychart"></a>
|
||||
### `SankeyChart`
|
||||
|
||||
- Safety: `wrapped`
|
||||
- Category: `charts`
|
||||
- Documentation: [upstream component API](https://mantine.dev/charts/sankey-chart/)
|
||||
- Temporary bind: not available
|
||||
- Subcomponents: none
|
||||
- Component-specific blocked props: none
|
||||
- Accessibility:
|
||||
- Include a nearby text summary of the chart data.
|
||||
|
||||
#### Component-specific props
|
||||
|
||||
| Prop | Required | Type | Literal values | Description |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| <code>attributes</code> | no | <code>{ root?: Record<string, any>; tooltip?: Record<string, any>; tooltipItem?: Record<string, any>; tooltipItemBody?: Record<...>; ... 4 more ...; tooltipBody?: Record<...>; }</code> | — | — |
|
||||
| <code>colors</code> | no | <code>DefaultMantineColor[]</code> | — | An array of colors used for nodes when no `color` is set on individual nodes |
|
||||
| <code>data</code> | yes | <code>SankeyChartData</code> | — | Data used to render chart, must include `nodes` and `links` arrays |
|
||||
| <code>iterations</code> | no | <code>number</code> | — | The number of relaxation iterations |
|
||||
| <code>linkColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Default color for links, by default depends on color scheme |
|
||||
| <code>linkCurvature</code> | no | <code>number</code> | — | The curvature of links between nodes |
|
||||
| <code>linkOpacity</code> | no | <code>number</code> | — | Opacity of the link fill |
|
||||
| <code>nodeColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Default color for nodes, by default depends on color scheme |
|
||||
| <code>nodePadding</code> | no | <code>number</code> | — | The padding between nodes |
|
||||
| <code>nodeWidth</code> | no | <code>number</code> | — | The width of each node |
|
||||
| <code>sankeyProps</code> | no | <code>Partial<Omit<RechartsSankeyProps, "data" | "ref">></code> | — | Props passed down to recharts `Sankey` component |
|
||||
| <code>textColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Controls text color of labels |
|
||||
| <code>tooltipAnimationDuration</code> | no | <code>number</code> | — | Tooltip animation duration in ms |
|
||||
| <code>tooltipProps</code> | no | <code>Omit<TooltipProps<any, any>, "ref"></code> | — | Props passed down to `Tooltip` recharts component |
|
||||
| <code>unstyled</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>withTooltip</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether the tooltip should be displayed when hovered |
|
||||
|
||||
<a id="component-scatterchart"></a>
|
||||
### `ScatterChart`
|
||||
|
||||
- Safety: `wrapped`
|
||||
- Category: `charts`
|
||||
- Documentation: [upstream component API](https://mantine.dev/charts/scatter-chart/)
|
||||
- Temporary bind: not available
|
||||
- Subcomponents: none
|
||||
- Component-specific blocked props: none
|
||||
- Accessibility:
|
||||
- Include a nearby text summary of the chart data.
|
||||
|
||||
#### Component-specific props
|
||||
|
||||
| Prop | Required | Type | Literal values | Description |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| <code>attributes</code> | no | <code>{ legend?: Record<string, any>; grid?: Record<string, any>; root?: Record<string, any>; tooltip?: Record<string, any>; ... 14 more ...; scatter?: Record<...>; }</code> | — | — |
|
||||
| <code>data</code> | yes | <code>ScatterChartSeries[]</code> | — | Data that is used to build the chart |
|
||||
| <code>dataKey</code> | yes | <code>{ x: string; y: string; }</code> | — | Keys that should be used to retrieve data from the data array on x and y axis |
|
||||
| <code>gridAxis</code> | no | <code>"none" | "x" | "y" | "xy"</code> | <code>"none"</code>, <code>"x"</code>, <code>"xy"</code>, <code>"y"</code> | Specifies which lines should be displayed in the grid, `'x'` by default |
|
||||
| <code>gridColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Color of the grid and cursor lines, by default depends on color scheme |
|
||||
| <code>gridProps</code> | no | <code>Omit<CartesianGridProps, "ref"></code> | — | Props passed down to the `CartesianGrid` component |
|
||||
| <code>labels</code> | no | <code>{ x?: string; y?: string; }</code> | — | Labels that should be used instead of keys names in the tooltip |
|
||||
| <code>legendProps</code> | no | <code>Omit<LegendProps, "ref"></code> | — | Props passed down to the `Legend` component |
|
||||
| <code>pointLabels</code> | no | <code>"x" | "y"</code> | <code>"x"</code>, <code>"y"</code> | If set, displays labels next to points for the given axis |
|
||||
| <code>referenceLines</code> | no | <code>ChartReferenceLineProps[]</code> | — | Reference lines that should be displayed on the chart |
|
||||
| <code>rightYAxisLabel</code> | no | <code>string</code> | — | A label to display next to the right y-axis |
|
||||
| <code>rightYAxisProps</code> | no | <code>Omit<YAxisProps, "ref"></code> | — | Props passed down to the `YAxis` recharts component rendered on the right side |
|
||||
| <code>scatterChartProps</code> | no | <code>(CartesianChartProps<unknown> & { ref?: React.Ref<SVGSVGElement>; })</code> | — | Props passed down to recharts `ScatterChart` component |
|
||||
| <code>scatterProps</code> | no | <code>Partial<Omit<ScatterProps, "ref">></code> | — | Props passed down to recharts `Scatter` component |
|
||||
| <code>textColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Color of the text displayed inside the chart, `'dimmed'` by default |
|
||||
| <code>tickLine</code> | no | <code>"none" | "x" | "y" | "xy"</code> | <code>"none"</code>, <code>"x"</code>, <code>"xy"</code>, <code>"y"</code> | Specifies which axis should have tick line, `'y'` by default |
|
||||
| <code>tooltipAnimationDuration</code> | no | <code>number</code> | — | Tooltip position animation duration in ms, `0` by default |
|
||||
| <code>tooltipProps</code> | no | <code>Omit<TooltipProps<any, any>, "ref"></code> | — | Props passed down to the `Tooltip` component |
|
||||
| <code>unit</code> | no | <code>{ x?: string; y?: string; }</code> | — | Units displayed after value on axis and inside the tooltip |
|
||||
| <code>unstyled</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>withLegend</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether chart legend should be displayed, `false` by default |
|
||||
| <code>withRightYAxis</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether additional y-axis should be displayed on the right side of the chart, `false` by default |
|
||||
| <code>withTooltip</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether chart tooltip should be displayed, `true` by default |
|
||||
| <code>withXAxis</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether x-axis should be displayed, `true` by default |
|
||||
| <code>withYAxis</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether y-axis should be displayed, `true` by default |
|
||||
| <code>xAxisLabel</code> | no | <code>string</code> | — | A label to display below the x-axis |
|
||||
| <code>xAxisProps</code> | no | <code>Omit<XAxisProps, "ref"></code> | — | Props passed down to the `XAxis` recharts component |
|
||||
| <code>yAxisLabel</code> | no | <code>string</code> | — | A label to display next to the y-axis |
|
||||
| <code>yAxisProps</code> | no | <code>Omit<YAxisProps, "ref"></code> | — | Props passed down to the `YAxis` recharts component |
|
||||
|
||||
<a id="component-sparkline"></a>
|
||||
### `Sparkline`
|
||||
|
||||
- Safety: `wrapped`
|
||||
- Category: `charts`
|
||||
- Documentation: [upstream component API](https://mantine.dev/charts/sparkline/)
|
||||
- Temporary bind: not available
|
||||
- Subcomponents: none
|
||||
- Component-specific blocked props: none
|
||||
- Accessibility:
|
||||
- Include a nearby text summary of the chart data.
|
||||
|
||||
#### Component-specific props
|
||||
|
||||
| Prop | Required | Type | Literal values | Description |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| <code>areaProps</code> | no | <code>Omit<AreaProps<any, any>, "data" | "ref" | "dataKey"></code> | — | Props passed down to the underlying recharts `Area` component |
|
||||
| <code>attributes</code> | no | <code>{ root?: Record<string, any>; }</code> | — | — |
|
||||
| <code>connectNulls</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether null values should be connected with other values |
|
||||
| <code>curveType</code> | no | <code>"step" | "bump" | "linear" | "natural" | "monotone" | "stepBefore" | "stepAfter"</code> | <code>"bump"</code>, <code>"linear"</code>, <code>"monotone"</code>, <code>"natural"</code>, <code>"step"</code>, <code>"stepAfter"</code>, <code>"stepBefore"</code> | Type of the curve |
|
||||
| <code>data</code> | yes | <code>(number | null)[]</code> | — | Data used to render the chart |
|
||||
| <code>trendColors</code> | no | <code>SparklineTrendColors</code> | — | If set, `color` prop is ignored and chart color is determined by the difference between first and last value. |
|
||||
| <code>unstyled</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>withGradient</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether the chart fill should be a gradient |
|
||||
|
||||
<a id="component-treemap"></a>
|
||||
### `Treemap`
|
||||
|
||||
- Safety: `wrapped`
|
||||
- Category: `charts`
|
||||
- Documentation: [upstream component API](https://mantine.dev/charts/treemap/)
|
||||
- Temporary bind: not available
|
||||
- Subcomponents: none
|
||||
- Component-specific blocked props: none
|
||||
- Accessibility:
|
||||
- Include a nearby text summary of the chart data.
|
||||
|
||||
#### Component-specific props
|
||||
|
||||
| Prop | Required | Type | Literal values | Description |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| <code>aspectRatio</code> | no | <code>number</code> | — | The treemap will try to keep every single rectangle's aspect ratio near the aspectRatio given |
|
||||
| <code>attributes</code> | no | <code>{ root?: Record<string, any>; tooltip?: Record<string, any>; tooltipItem?: Record<string, any>; tooltipItemBody?: Record<...>; ... 4 more ...; tooltipBody?: Record<...>; }</code> | — | — |
|
||||
| <code>autoContrast</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether text color should be adjusted based on background color to improve contrast |
|
||||
| <code>data</code> | yes | <code>TreemapData[]</code> | — | Data used to render chart |
|
||||
| <code>dataKey</code> | no | <code>string</code> | — | Key in data object for the value |
|
||||
| <code>strokeColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Controls color of the node stroke, by default depends on color scheme |
|
||||
| <code>textColor</code> | no | <code>DefaultMantineColor</code> | <code>"blue"</code>, <code>"cyan"</code>, <code>"dark"</code>, <code>"grape"</code>, <code>"gray"</code>, <code>"green"</code>, <code>"indigo"</code>, <code>"lime"</code>, <code>"orange"</code>, <code>"pink"</code>, <code>"red"</code>, <code>"teal"</code>, <code>"violet"</code>, <code>"yellow"</code> | Controls text color of labels |
|
||||
| <code>tooltipAnimationDuration</code> | no | <code>number</code> | — | Tooltip animation duration in ms |
|
||||
| <code>tooltipProps</code> | no | <code>Omit<TooltipProps<any, any>, "ref"></code> | — | Props passed down to `Tooltip` recharts component |
|
||||
| <code>treemapProps</code> | no | <code>Partial<Omit<RechartsTreemapProps<TreemapDataType, any>, "data" | "ref" | "dataKey">></code> | — | Props passed down to recharts `Treemap` component |
|
||||
| <code>unstyled</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | — |
|
||||
| <code>withTooltip</code> | no | <code>false | true</code> | <code>false</code>, <code>true</code> | Determines whether the tooltip should be displayed when a node is hovered |
|
||||
The upstream source is https://mantine.dev/llms.txt. Follow its `## Charts` links for current component documentation. Homarr's live component catalog remains authoritative for the installed component names and blocked capabilities.
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -2,6 +2,20 @@
|
||||
|
||||
Templates read four roots: `data.<requestId>`, `status.<requestId>`, `options`, and `inputs`.
|
||||
|
||||
Each request status is an object:
|
||||
|
||||
```ts
|
||||
status.<requestId> = {
|
||||
loading: boolean;
|
||||
ok?: boolean;
|
||||
status?: number;
|
||||
statusText?: string;
|
||||
error?: string;
|
||||
};
|
||||
```
|
||||
|
||||
Use `status.list?.loading` for loading, `status.list?.ok === false` for failure, and `status.list?.ok === true` for success. Do not compare `status.list` with the strings `"loading"`, `"success"`, or `"error"`; those comparisons are always false and are rejected by validation.
|
||||
|
||||
Use Mantine Core, Dates, Charts, safe Tabler icons, and Homarr runtime components. Safe installed Mantine exports are discovered automatically. Ordinary serializable props and Mantine style props pass through; `style` and `styles` are scoped and sanitized.
|
||||
|
||||
Render icons as `<TablerIcon name="server" size={18} />`. When connected, retrieve `homarr://custom-widgets/components/TablerIcon` for the supported icon names.
|
||||
|
||||
@@ -0,0 +1,478 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"$schema": {
|
||||
"type": "string",
|
||||
"const": "homarr-custom-widget-v2"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 128
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"maxLength": 512
|
||||
},
|
||||
"iconUrl": {
|
||||
"type": "string",
|
||||
"format": "uri"
|
||||
},
|
||||
"sources": {
|
||||
"minItems": 1,
|
||||
"maxItems": 8,
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 64,
|
||||
"pattern": "^[a-z][a-z0-9_-]*$"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 128
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"maxLength": 2048,
|
||||
"format": "uri"
|
||||
},
|
||||
"networkScope": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"public",
|
||||
"private",
|
||||
"loopback"
|
||||
]
|
||||
},
|
||||
"auth": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"const": "none"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"const": "bearer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"const": "basic"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"const": "apiKeyHeader"
|
||||
},
|
||||
"headerName": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 256,
|
||||
"pattern": "^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type",
|
||||
"headerName"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"const": "apiKeyQuery"
|
||||
},
|
||||
"parameterName": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 256
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type",
|
||||
"parameterName"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"name",
|
||||
"baseUrl",
|
||||
"networkScope",
|
||||
"auth"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"requests": {
|
||||
"maxItems": 64,
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 64,
|
||||
"pattern": "^[a-z][a-z0-9_-]*$"
|
||||
},
|
||||
"sourceId": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 64,
|
||||
"pattern": "^[a-z][a-z0-9_-]*$"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"query",
|
||||
"action"
|
||||
]
|
||||
},
|
||||
"method": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"GET",
|
||||
"POST",
|
||||
"PUT",
|
||||
"DELETE",
|
||||
"PATCH"
|
||||
]
|
||||
},
|
||||
"pathTemplate": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 2048,
|
||||
"pattern": "^\\/.*"
|
||||
},
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 64
|
||||
},
|
||||
"additionalProperties": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"string",
|
||||
"number",
|
||||
"boolean"
|
||||
]
|
||||
}
|
||||
},
|
||||
"optionsBinding": {
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 64
|
||||
},
|
||||
"additionalProperties": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"$option": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 64
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"$option"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"queryTemplate": {
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 256
|
||||
},
|
||||
"additionalProperties": {
|
||||
"$ref": "#/$defs/__schema0"
|
||||
}
|
||||
},
|
||||
"bodyTemplate": {
|
||||
"$ref": "#/$defs/__schema1"
|
||||
},
|
||||
"staticHeaders": {
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 256,
|
||||
"pattern": "^[!#$%&'*+\\-.^_`|~0-9A-Za-z]+$"
|
||||
},
|
||||
"additionalProperties": {
|
||||
"type": "string",
|
||||
"maxLength": 8192
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"inherit",
|
||||
"none"
|
||||
]
|
||||
},
|
||||
"minimumBoardPermission": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"view",
|
||||
"modify",
|
||||
"full"
|
||||
]
|
||||
},
|
||||
"trigger": {
|
||||
"default": "manual",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"load",
|
||||
"manual"
|
||||
]
|
||||
},
|
||||
"cacheTtlSeconds": {
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 3600
|
||||
},
|
||||
"confirmation": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"title": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 128
|
||||
},
|
||||
"message": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 512
|
||||
},
|
||||
"confirmLabel": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 64
|
||||
},
|
||||
"destructive": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"title",
|
||||
"message"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"invalidates": {
|
||||
"maxItems": 32,
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 64,
|
||||
"pattern": "^[a-z][a-z0-9_-]*$"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"sourceId",
|
||||
"kind",
|
||||
"method",
|
||||
"pathTemplate",
|
||||
"parameters",
|
||||
"auth",
|
||||
"minimumBoardPermission",
|
||||
"trigger"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"optionsSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"const": "object"
|
||||
},
|
||||
"properties": {
|
||||
"default": {},
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"type": "string"
|
||||
},
|
||||
"additionalProperties": {}
|
||||
},
|
||||
"required": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": {
|
||||
"default": false,
|
||||
"type": "boolean",
|
||||
"const": false
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"if": {},
|
||||
"then": {},
|
||||
"else": {}
|
||||
},
|
||||
"required": [
|
||||
"type",
|
||||
"properties",
|
||||
"additionalProperties"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"defaultOptions": {
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"type": "string"
|
||||
},
|
||||
"additionalProperties": {}
|
||||
},
|
||||
"template": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 50000
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"$schema",
|
||||
"name",
|
||||
"sources",
|
||||
"requests",
|
||||
"optionsSchema",
|
||||
"defaultOptions",
|
||||
"template"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"$defs": {
|
||||
"__schema0": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/$defs/__schema0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"type": "string"
|
||||
},
|
||||
"additionalProperties": {
|
||||
"$ref": "#/$defs/__schema0"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"__schema1": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/$defs/__schema1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"propertyNames": {
|
||||
"type": "string"
|
||||
},
|
||||
"additionalProperties": {
|
||||
"$ref": "#/$defs/__schema1"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"title": "Homarr Custom JSX v2 widget",
|
||||
"description": "The only supported Homarr custom-widget format. Secrets are configured separately."
|
||||
}
|
||||
Reference in new issue
Block a user