Skip to main content

Your opinion matters! Together with you, we want to continuously improve KoliBri. Share your ideas, wishes, or suggestions—quickly and easily.

Properties

The aim is to use uniform properties across all components to make it easier to learn. The following requirements are defined for this:

  • Only one property name for similar properties
  • If possible, uniform descriptions for the same property names
  • If possible, uniform types with the same property names
  • Minimize the number of different properties, descriptions and types

Current status

#PropertyComponentsDescriptionsTypes
1_labelabbr, accordion, alert, avatar, badge, breadcrumb, button, button-link, card, combobox, details, dialog, drawer, heading, icon, input-checkbox, input-color, input-date, input-email, input-file, input-number, input-password, input-radio, input-range, input-text, link, link-button, meter, modal, nav, pagination, popover-button, progress, quote, select, single-select, skip-nav, spin, split-button, table-stateful, table-stateless, tabs, textarea, toolbar, tree, tree-itemDEPRECATED! Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).
Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).
Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.
string
2_disabledaccordion, button, button-link, combobox, details, input-checkbox, input-color, input-date, input-email, input-file, input-number, input-password, input-radio, input-range, input-text, link, link-button, popover-button, select, single-select, split-button, textareaMakes the element not focusable and ignore all events.boolean
3_levelaccordion, alert, card, details, dialog, drawer, headingDefines which H-level from 1-6 the heading has. 0 specifies no heading and is shown as bold text.0 | 1 | 2 | 3 | 4 | 5 | 6
4_openaccordion, details, drawer, tree-itemOpens/expands the element when truthy, closes/collapses when falsy.boolean
5_alertalertDefines whether the screen-readers should read out the notification.boolean
6_has-closeralert, card, drawerDefines whether the element can be closed.boolean
7_typealert, button, button-link, input-date, input-text, popover-button, split-buttonDefines either the type of the component or of the components interactive element."default" | "error" | "info" | "success" | "warning"
"button" | "reset" | "submit"
"date" | "datetime-local" | "month" | "time" | "week"
"search" | "tel" | "text" | "url"
8_variantalert, button, button-link, combobox, dialog, input-checkbox, input-color, input-date, input-email, input-file, input-number, input-password, input-radio, input-range, input-text, link, link-button, modal, popover-button, progress, quote, select, single-select, spin, split-button, table-stateful, table-stateless, textareaDefines which variant should be used for presentation.
Defines the variant of the modal.
"card" | "msg"
string | string[]
"blank" | "card"
"button" | "default" | "switch"
"bar" | "cycle"
"block" | "inline"
"cycle" | "dot" | "none"
9_coloravatar, badgeDefines the backgroundColor and foregroundColor.string | { backgroundColor: string; foregroundColor: string; }
10_srcavatar, imageSets the image `src` attribute to the given string.string
11_iconsbadge, button, button-link, combobox, icon, input-checkbox, input-color, input-date, input-email, input-file, input-number, input-password, input-range, input-text, link, link-button, popover-button, select, single-select, split-button, textareaDefines the icon classnames (e.g. `_icons="fa-solid fa-user"`).
Defines the icon classnames (e.g. `icons="fa-solid fa-user"`).
KoliBriHorizontalIcons & KoliBriVerticalIcons | string
string | { right?: IconOrIconClass; left?: IconOrIconClass; }
string
string | { checked: string; indeterminate?: string; unchecked?: string; } | { checked?: string; indeterminate: string; unchecked?: string; } | { checked?: string; indeterminate?: string; unchecked: string; }
12_smart-buttonbadge, input-color, input-date, input-email, input-file, input-number, input-password, input-textAllows to add a button with an arbitrary action within the element (_hide-label only).string | { _label: string; } & { _ariaExpanded?: boolean; _tabIndex?: number; _value?: StencilUnknown; _accessKey?: string; _role?: "tab" | "treeitem"; _ariaControls?: string; _ariaDescription?: string; _ariaSelected?: boolean; _on?: ButtonCallbacksPropType<StencilUnknown>; _type?: "button" | "reset" | "submit"; _variant?: VariantClassNamePropType; _customClass?: string; _disabled?: boolean; _hideLabel?: boolean; _icons?: IconsPropType; _id?: string; _inline?: boolean; _name?: string; _shortKey?: string; _syncValueBySelector?: string; _tooltipAlign?: AlignPropType; }
13_linksbreadcrumb, nav, skip-navDefines the list of links combined with their labels to render.
Defines the list of links, buttons or texts to render.
BreadcrumbLinkProps[] | string
ButtonOrLinkOrTextWithChildrenProps[] | string
LinkProps[] | string
14_access-keybutton, button-link, combobox, input-checkbox, input-color, input-date, input-email, input-file, input-number, input-password, input-range, input-text, link, link-button, popover-button, select, single-select, split-button, textareaDefines the key combination that can be used to trigger or focus the component's interactive element.string
15_aria-controlsbutton, button-link, link, link-button, split-buttonDefines which elements are controlled by this component. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)string
16_aria-descriptionbutton, button-link, link, link-button, popover-button, split-buttonDefines the value for the aria-description attribute.string
17_aria-expandedbutton, button-link, link, split-buttonDefines whether the interactive element of the component expanded something. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)boolean
18_aria-selectedbutton, button-link, split-buttonDefines whether the interactive element of the component is selected (e.g. role=tab). (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected)boolean
19_custom-classbutton, link-button, pagination, popover-button, split-buttonDefines the custom class attribute if _variant="custom" is set.string
20_inlinebutton, button-link, link, link-button, popover-buttonDefines whether the component is displayed as a standalone block or inline without enforcing a minimum size of 44px.boolean
21_namebutton, button-link, combobox, input-checkbox, input-color, input-date, input-email, input-file, input-number, input-password, input-radio, input-range, input-text, popover-button, select, single-select, skeleton, split-button, textareaDefines the technical name of an input field.
Sets the name of the skeleton component.
string
22_short-keybutton, button-link, combobox, input-checkbox, input-color, input-date, input-email, input-file, input-number, input-password, input-range, input-text, link, link-button, popover-button, select, single-select, split-button, textareaAdds a visual shortcut hint after the label and instructs the screen reader to read the shortcut aloud.string
23_tooltip-alignbutton, button-link, combobox, input-checkbox, input-color, input-date, input-email, input-file, input-number, input-password, input-radio, input-range, input-text, link, link-button, pagination, popover-button, select, single-select, split-button, textareaDefines where to show the Tooltip preferably: top, right, bottom or left."bottom" | "left" | "right" | "top"
24_valuebutton, button-link, combobox, input-checkbox, input-color, input-date, input-email, input-number, input-password, input-radio, input-range, input-text, meter, popover-button, progress, select, single-select, split-button, textareaDefines the value of the element.
Defines the value of the element. Is capped between min and max.
boolean | null | number | object | string
string
Date | `${number}-${number}-${number}T${number}:${number}:${number}` | `${number}-${number}-${number}T${number}:${number}` | `${number}-${number}-${number}` | `${number}-${number}` | `${number}-W${number}` | `${number}:${number}:${number}` | `${number}:${number}` | null
`${number}.${number}` | `${number}` | null | number
`${number}.${number}` | `${number}` | number
number
StencilUnknown[] | boolean | null | number | object | string
25_aria-detailscombobox, input-checkbox, input-color, input-date, input-email, input-file, input-number, input-password, input-radio, input-range, input-text, select, single-select, textareaReferences an external element by ID that provides accessible details for this combobox.
References an external element by ID that provides accessible details for this input. Uses ElementInternals.ariaDetailsElements to cross the Shadow DOM boundary. Supported by desktop screen readers (NVDA, JAWS with Chrome/Firefox). Not yet supported by mobile screen readers (TalkBack, VoiceOver iOS).
References an external element by ID that provides accessible details for this input.
References an external element by ID that provides accessible details for this select.
References an external element by ID that provides accessible details for this textarea.
string
26_has-clear-buttoncombobox, single-selectShows the clear button if enabled.boolean
27_hide-msgcombobox, input-checkbox, input-color, input-date, input-email, input-file, input-number, input-password, input-radio, input-range, input-text, select, single-select, textareaHides the error message but leaves it in the DOM for the input's aria-describedby.boolean
28_hintcombobox, input-checkbox, input-color, input-date, input-email, input-file, input-number, input-password, input-radio, input-range, input-text, select, single-select, textareaDefines the hint text.string
29_msgcombobox, input-checkbox, input-color, input-date, input-email, input-file, input-number, input-password, input-radio, input-range, input-text, select, single-select, textareaDefines the properties for a message rendered as Alert component.Omit<AlertProps, "_on" | "_label" | "_level" | "_variant" | "_hasCloser"> & { _description: string; } | string
30_placeholdercombobox, input-email, input-number, input-password, input-text, single-select, textareaDefines the placeholder for input field. To be shown when there's no value.string
31_requiredcombobox, input-checkbox, input-date, input-email, input-file, input-number, input-password, input-radio, input-text, select, single-select, textareaMakes the input element required.boolean
32_suggestionscombobox, input-color, input-date, input-email, input-number, input-range, input-textSuggestions to provide for the input.W3CInputValue[] | string
33_touchedcombobox, input-checkbox, input-color, input-date, input-email, input-file, input-number, input-password, input-radio, input-range, input-text, select, single-select, textareaShows if the input was touched by a user.boolean
34_widthdialog, modalDefines the width of the modal. (max-width: 100%)string
35_aligndrawer, tabsDefines the visual orientation of the component."bottom" | "left" | "right" | "top"
36_required-textformDefines whether the mandatory-fields-hint should be shown. A string overrides the default text.boolean | string
37_secondary-headlineheadingDefines the text of the secondary headline.string
38_loadingimageDefines the loading mode for the image."eager" | "lazy"
39_sizesimageDefines the image sizes for different screen resolutions, supporting _srcset.string
40_srcsetimageSets a list of source URLs with widths of the images.string
41_checkedinput-checkboxDefines whether the checkbox is checked or not. Can be read and written.boolean
42_indeterminateinput-checkboxPuts the checkbox in the indeterminate state, does not change the value of _checked.boolean
43_label-aligninput-checkboxDefines which alignment should be used for presentation."left" | "right"
44_auto-completeinput-color, input-date, input-email, input-number, input-password, input-range, input-textDefines whether the input can be auto-completed.string
45_maxinput-date, input-number, input-range, meter, pagination, progressDefines the maximum value of the element.
Defines the maximum value of the element. Default like native component.
Date | `${number}-${number}-${number}T${number}:${number}:${number}` | `${number}-${number}-${number}T${number}:${number}` | `${number}-${number}-${number}` | `${number}-${number}` | `${number}-W${number}` | `${number}:${number}:${number}` | `${number}:${number}`
`${number}.${number}` | `${number}` | number
number
46_mininput-date, input-number, input-range, meterDefines the smallest possible input value.
Defines the minimum value of the element. Default like native component.
Date | `${number}-${number}-${number}T${number}:${number}:${number}` | `${number}-${number}-${number}T${number}:${number}` | `${number}-${number}-${number}` | `${number}-${number}` | `${number}-W${number}` | `${number}:${number}:${number}` | `${number}:${number}`
`${number}.${number}` | `${number}` | number
number
47_read-onlyinput-date, input-email, input-number, input-password, input-text, textareaMakes the input element read only.boolean
48_stepinput-date, input-number, input-rangeDefines the step size for value changes.`${number}.${number}` | `${number}` | number
49_has-counterinput-email, input-password, input-text, textareaShows a character counter for the input element.boolean
50_max-lengthinput-email, input-password, input-text, textareaDefines the maximum number of input characters.number
51_max-length-behaviorinput-email, input-password, input-text, textareaDefines the behavior when maxLength is set. 'hard' sets the maxlength attribute, 'soft' shows a character counter without preventing input."hard" | "soft"
52_multipleinput-email, input-file, selectMakes the input accept multiple inputs.boolean
53_patterninput-email, input-password, input-textDefines a validation pattern for the input field.string
54_acceptinput-fileDefines which file formats are accepted.string
55_visibility-toggleinput-passwordActivates the show password buttonboolean
56_optionsinput-radio, select, single-selectOptions the user can choose from.RadioOption<StencilUnknown>[] | string
(Option<StencilUnknown> | Optgroup<StencilUnknown>)[] | string
Option<StencilUnknown>[] | string
57_orientationinput-radio, meter, toolbarDefines whether the orientation of the component is horizontal or vertical.
Defines whether the meter bar is displayed horizontally or vertically.
"horizontal" | "vertical"
58_spell-checkinput-text, textareaDefines whether the browser should check the spelling and grammar.boolean
59_aria-current-valuelink, link-buttonDefines the value for the aria-current attribute."date" | "false" | "location" | "page" | "step" | "time" | "true"
60_downloadlink, link-buttonTells the browser that the link contains a file. Optionally sets the filename.string
61_hreflink, link-button, quote, tree-itemSets the target URI of the link or citation source.
Defines the target URI of the link.
string
62_targetlink, link-buttonDefines where to open the link.string
63_highmeterFrom this value to the max value is the high range of the meter. Below this value is the middle range.number
64_lowmeterFrom this value to the min value is the low range of the meter. Above this value is the middle range.number
65_optimummeterIndicates the optimal range of the element. If this lies in the high range, the high range will be optimum, the middle range will be suboptimum and the low range will be critical. If this lies in the low range, the low range will be optimum, the middle range will be suboptimum and the high range will be critical. If this lies in the middle range, both low and high range will be suboptimum and nothing will be critical.number
66_unitmeter, progressDefines the unit of the value.
Defines the unit of the step values (not shown).
string
67_collapsiblenavDefines if navigation nodes can be collapsed or not. Enabled by default.boolean
68_has-icons-when-expandednavShows icons next to the navigation item labels, even when the navigation is not collapsed.boolean
69_boundary-countpaginationDefines the amount of pages to show next to the outer arrow buttons.number
70_has-buttonspaginationDefines which navigation buttons to render (first, last, next, previous buttons).boolean | string | { first: boolean; last: boolean; next: boolean; previous: boolean; }
71_pagepaginationDefines the current page.number
72_page-sizepaginationDefines the amount of entries to show per page.number
73_page-size-optionspaginationDefines the options for the page-size-select.number[] | string
74_sibling-countpaginationDefines the amount of pages to show next to the current page.number
75_popover-alignpopover-buttonDefines where to show the Popover preferably: top, right, bottom or left."bottom" | "left" | "right" | "top"
76_tab-indexpopover-button, selectDefines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)number
77_quotequoteDefines the text of the quote.string
78_rowsselect, single-select, textareaMaximum number of visible rows of the element.number
79_showspinMakes the element show up.boolean
80_allow-multi-sorttable-statefulDefines whether to allow multi sort.boolean
81_aria-labelledbytable-stateful, table-statelessReferences an external element by ID that serves as the accessible label for this table. Uses ElementInternals.ariaLabelledByElements to cross the Shadow DOM boundary. Supported by desktop screen readers (NVDA, JAWS with Chrome/Firefox). Not yet supported by mobile screen readers (TalkBack, VoiceOver iOS) — use `_label` instead.string
82_datatable-stateful, table-statelessDefines the primary table data.KoliBriTableDataType[] | string
83_data-foottable-stateful, table-statelessDefines the data for the table footer.KoliBriTableDataType[] | string
84_has-settings-menutable-stateful, table-statelessEnables the settings menu if true (default: false).boolean
85_headerstable-statefulDefines the horizontal and vertical table headers.string | { horizontal?: KoliBriTableHeaderCellWithLogic[][]; vertical?: KoliBriTableHeaderCellWithLogic[][]; }
86_paginationtable-statefulDefines whether to show the data distributed over multiple pages.boolean | string | { _page: number; } & { _on?: KoliBriPaginationButtonCallbacks; _page?: number; _max?: number; _boundaryCount?: number; _hasButtons?: boolean | Stringified<PaginationHasButton>; _pageSize?: number; _pageSizeOptions?: Stringified<number[]>; _siblingCount?: number; _customClass?: string; _label?: string; _tooltipAlign?: AlignPropType; }
87_pagination-positiontable-statefulControls the position of the pagination."both" | "bottom" | "top"
88_selectiontable-stateful, table-statelessDefines how rows can be selected and the current selection.string | ({ disabledKeys?: KoliBriTableSelectionKeys; keyPropertyName?: string; label: (row: KoliBriTableDataType) => string; multiple?: boolean; selectedKeys?: KoliBriTableSelectionKeys; })
89_header-cellstable-statelessDefines the horizontal and vertical table headers.string | { horizontal?: KoliBriTableHeaderCell[][]; vertical?: KoliBriTableHeaderCell[][]; }
90_behaviortabsDefines which behavior is active."select-automatic" | "select-manual"
91_has-create-buttontabsDefines whether the element has a create button.boolean
92_selectedtabsDefines which tab is active.number
93_tabstabsDefines the tab captions.TabButtonProps[] | string
94_adjust-heighttextareaAdjusts the height of the element to its content.boolean
95_resizetextareaDefines whether and in which direction the size of the input can be changed by the user. (https://developer.mozilla.org/de/docs/Web/CSS/resize) In version 3 (v3), horizontal resizing is abolished. The corresponding property is then reduced to the properties `vertical` (default) and `none`."none" | "vertical"
96_activetree-itemIf set (to true) the tree item is the active one.boolean
97_hide-buttonkol-paginationVersteckt entweder den Zurück- oder Weiter-Schalter, oder beide Schalter."previous" | "next" | "both"

Deprecated Properties

The traits listed in the table below replace numerous deprecated traits (13 von 99, ~13%).

New PropertyDeprecated Properties
_align_tabs-align
_dataFoot
_hide-button_has-buttons (?)
_hide-label_compact, _hide-label
_label_alt, _aria-label, _caption, _heading, _headline, _summary, _symbol, _title
_max_total
_row_size
_variant_type*
_show_show-dropdown
_has-footer, _height, _icon-align, _list, _part, _role, _show-duration, _stealth, _selector, _useCase

* Only applies to types who actually mean variants.

Obsolete components

The components listed in the following table will be superseded or removed.

New ComponentDeprecated Components
avatar
toolbar
tree
list
button-group, icon-font-awesome, icon-icofont, input-radio-group, link-group, symbol

* Only applies to types who actually mean variants.