diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index f623800d..00000000 --- a/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -/dist/** -.eslintrc.js \ No newline at end of file diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 2f74cc21..00000000 --- a/.eslintrc.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Copyright (c) 2013-present, creativeLabs Lukasz Holeczek. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -'use strict' - -module.exports = { - root: true, // So parent files don't get applied - env: { - es6: true, - browser: true, - node: true, - }, - extends: [ - 'plugin:react/recommended', - 'plugin:@typescript-eslint/recommended', - 'plugin:prettier/recommended', - 'plugin:unicorn/recommended', - ], - parser: '@typescript-eslint/parser', - parserOptions: { - ecmaVersion: 2020, - sourceType: 'module', - ecmaFeatures: { - jsx: true, - }, - }, - plugins: ['@typescript-eslint', 'react', 'react-hooks'], - settings: { - react: { - pragma: 'React', - version: 'detect', - }, - }, - rules: { - 'unicorn/filename-case': 'off', - 'unicorn/no-array-for-each': 'off', - 'unicorn/no-null': 'off', - 'unicorn/prefer-dom-node-append': 'off', - 'unicorn/prefer-export-from': 'off', - 'unicorn/prefer-query-selector': 'off', - 'unicorn/prevent-abbreviations': 'off', - }, - overrides: [ - { - files: ['packages/docs/build/**'], - env: { - browser: false, - node: true, - }, - parserOptions: { - sourceType: 'script', - }, - rules: { - '@typescript-eslint/no-var-requires': 'off', - 'no-console': 'off', - 'unicorn/prefer-module': 'off', - 'unicorn/prefer-top-level-await': 'off', - }, - }, - { - files: ['packages/docs/**'], - rules: { - '@typescript-eslint/no-var-requires': 'off', - 'unicorn/prefer-module': 'off', - }, - }, - ], -} diff --git a/.prettierrc.js b/.prettierrc.js deleted file mode 100644 index 415ca057..00000000 --- a/.prettierrc.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = { - semi: false, - trailingComma: "all", - singleQuote: true, - printWidth: 100, - tabWidth: 2 -}; \ No newline at end of file diff --git a/LICENSE b/LICENSE index 94e4f4d1..fbb053e0 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 creativeLabs Łukasz Holeczek +Copyright (c) 2025 creativeLabs Łukasz Holeczek Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 26d6b460..f147887e 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,8 @@ · Request feature · + Roadmap + · Blog
@@ -46,7 +48,7 @@ Several quick start options are available: -- [Download the latest release](https://github.com/coreui/coreui-react/archive/v5.3.0.zip) +- [Download the latest release](https://github.com/coreui/coreui-react/archive/v5.7.1.zip) - Clone the repo: `git clone https://github.com/coreui/coreui-react.git` - Install with [npm](https://www.npmjs.com/): `npm install @coreui/react` - Install with [yarn](https://yarnpkg.com/): `yarn add @coreui/react` @@ -101,6 +103,7 @@ import "bootstrap/dist/css/bootstrap.min.css"; - [React Accordion](https://coreui.io/react/docs/components/accordion/) - [React Alert](https://coreui.io/react/docs/components/alert/) +- [React Autocomplete](https://coreui.io/react/docs/forms/autocomplete/) **PRO** - [React Avatar](https://coreui.io/react/docs/components/avatar/) - [React Badge](https://coreui.io/react/docs/components/badge/) - [React Breadcrumb](https://coreui.io/react/docs/components/breadcrumb/) @@ -134,7 +137,8 @@ import "bootstrap/dist/css/bootstrap.min.css"; - [React Progress](https://coreui.io/react/docs/components/progress/) - [React Radio](https://coreui.io/react/docs/forms/radio/) - [React Range](https://coreui.io/react/docs/forms/range/) -- [React Rating](https://coreui.io/react/docs/forms/rating/) +- [React Range Slider](https://coreui.io/react/docs/forms/range-slider/) **PRO** +- [React Rating](https://coreui.io/react/docs/forms/rating/) **PRO** - [React Select](https://coreui.io/react/docs/forms/select/) - [React Sidebar](https://coreui.io/react/docs/components/sidebar/) - [React Smart Pagination](https://coreui.io/react/docs/components/smart-pagination/) **PRO** @@ -179,24 +183,25 @@ CoreUI supports most popular frameworks. Fully featured, out-of-the-box, templates for your application based on CoreUI. -- [Angular Admin Template](https://coreui.io/angular) -- [Bootstrap Admin Template](https://coreui.io/) -- [React Admin Template](https://coreui.io/react) -- [Vue Admin Template](https://coreui.io/vue) +- [Angular Admin Templates](https://coreui.io/themes-templates/admin-dashboard/angular/) +- [Bootstrap Admin Templates](https://coreui.io/themes-templates/admin-dashboard/bootstrap/) +- [Next.js Admin Templates](https://coreui.io/themes-templates/admin-dashboard/next-js/) +- [React Admin Templates](https://coreui.io/themes-templates/admin-dashboard/react/) +- [Vue Admin Templates](https://coreui.io/themes-templates/admin-dashboard/vue/) ## Contributing -Please read through our [contributing guidelines](https://github.com/coreui/coreui-react/blob/v4/.github/CONTRIBUTING.md). Included are directions for opening issues, coding standards, and notes on development. +Please read through our [contributing guidelines](https://github.com/coreui/coreui-react/blob/.github/CONTRIBUTING.md). Included are directions for opening issues, coding standards, and notes on development. -Editor preferences are available in the [editor config](https://github.com/coreui/coreui-react/blob/v4/.editorconfig) for easy use in common text editors. Read more and download plugins at{`$1`}
')
+}
+
+/**
+ * Generates the relative filename based on the file path.
+ *
+ * @param {string} file - The absolute file path.
+ * @returns {string} - The relative filename.
+ */
+const getRelativeFilename = (file) => {
+ let relativePath = file.includes('node_modules')
+ ? file.split('node_modules/@coreui/')[1]
+ : path.relative(GLOBBY_OPTIONS.cwd, file).replace('coreui-', '')
-async function createMdx(file, filename, name, props) {
- if (typeof props === 'undefined') {
- return
+ // Remove '-pro' from the filename if not a pro component
+ const isPro = PRO_COMPONENTS.some((component) => file.includes(component))
+ if (!isPro) {
+ relativePath = relativePath.replace('-pro', '')
}
- const pro = PRO_COMPONENTS.some((v) => file.includes(v))
- let relativeFilename
- if (file.includes('node_modules')) {
- relativeFilename = file.replace(path.join(file, '..', '..', '..'), '').replace('coreui-', '')
- } else {
- relativeFilename = file.replace(GLOBBY_OPTIONS.cwd, '').replace('coreui-', '')
+ return relativePath
+}
+
+/**
+ * Splits the input string by the '|' character, but only when the '|' is outside of any curly braces {} and parentheses ().
+ *
+ * @param {string} input - The string to be split.
+ * @returns {string[]} An array of split parts, trimmed of whitespace.
+ * @throws {Error} Throws an error if there are unmatched braces or parentheses in the input.
+ */
+const splitOutsideBracesAndParentheses = (input) => {
+ if (input.endsWith('...')) {
+ return [input]
+ }
+
+ const parts = []
+ let currentPart = ''
+ let braceDepth = 0
+ let parenthesisDepth = 0
+
+ for (const char of input) {
+ switch (char) {
+ case '{': {
+ braceDepth++
+ break
+ }
+ case '}': {
+ braceDepth--
+ if (braceDepth < 0) {
+ throw new Error('Unmatched closing curly brace detected.')
+ }
+ break
+ }
+ case '(': {
+ parenthesisDepth++
+ break
+ }
+ case ')': {
+ parenthesisDepth--
+ if (parenthesisDepth < 0) {
+ throw new Error('Unmatched closing parenthesis detected.')
+ }
+ break
+ }
+ case '|': {
+ // Split only if not inside any braces or parentheses
+ if (braceDepth === 0 && parenthesisDepth === 0 && currentPart.trim()) {
+ parts.push(currentPart.trim())
+ currentPart = ''
+ continue
+ }
+ break
+ }
+ default: {
+ break
+ }
+ }
+ currentPart += char
+ }
+
+ if (braceDepth !== 0) {
+ throw new Error('Unmatched opening curly brace detected.')
+ }
+ if (parenthesisDepth !== 0) {
+ throw new Error('Unmatched opening parenthesis detected.')
+ }
+
+ if (currentPart.trim()) {
+ parts.push(currentPart.trim())
}
- if (!pro) {
- relativeFilename = relativeFilename.replace('-pro', '')
+ return parts
+}
+
+/**
+ * Replaces specified text within component documentation.
+ *
+ * @param {string} componenName - The name of the component.
+ * @param {string} keyName - The key of the text replacement (e.g., 'description', 'example').
+ * @param {string} text - The text to be replaced.
+ * @returns {string} The replaced text.
+ */
+const replaceText = (componenName, keyName, text) => {
+ const keyNames = Object.keys(TEXT_REPLACEMENTS)
+
+ if (keyNames.includes(componenName) && TEXT_REPLACEMENTS[componenName][keyName]) {
+ const replacements = TEXT_REPLACEMENTS[componenName][keyName]
+ for (const replacement of replacements) {
+ for (const [key, value] of Object.entries(replacement)) {
+ if (text && key && value) {
+ return text.replaceAll(key, value)
+ }
+ }
+ }
+ } else {
+ return text
}
+}
+
+/**
+ * Creates an MDX file with the component's API documentation.
+ *
+ * @param {string} file - The absolute path to the component file.
+ * @param {object} component - The component info extracted by react-docgen-typescript.
+ */
+const createMdx = async (file, component) => {
+ if (!component) return
- let content = `\n`
- content += `\`\`\`jsx\n`
- content += `import { ${name} } from '@coreui/${relativeFilename.split('/')[1]}'\n`
+ const filename = path.basename(file, '.tsx')
+ const relativeFilename = getRelativeFilename(file)
+
+ let content = `\n\`\`\`jsx\n`
+ const importPathParts = relativeFilename.split('/')
+ if (importPathParts.length > 1) {
+ content += `import { ${component.displayName} } from '@coreui/${importPathParts[0]}'\n`
+ }
content += `// or\n`
- content += `import ${name} from '@coreui${relativeFilename.replace('.tsx', '')}'\n`
+ content += `import ${component.displayName} from '@coreui/${relativeFilename.replace('.tsx', '')}'\n`
content += `\`\`\`\n\n`
- let index = 0
- for (const [key, value] of Object.entries(props).sort()) {
- if (
- value.parent.fileName.includes('@types/react/index.d.ts') ||
- value.parent.fileName.includes('@types/react/ts5.0/index.d.ts')
- ) {
- continue
+ const filteredProps = Object.entries(component.props)
+ .filter(([_, value]) => {
+ if (!value.parent?.fileName) return true
+ return (
+ !value.parent.fileName.includes('@types/react/index.d.ts') &&
+ !value.parent.fileName.includes('@types/react/ts5.0/index.d.ts')
+ )
+ })
+ .sort(([a], [b]) => a.localeCompare(b))
+
+ for (const [index, [propName, propInfo]] of filteredProps.entries()) {
+ if (index === 0) {
+ content += `Property | \n` + content += `Default | \n` + content += `Type | \n` + content += `
---|---|---|
${displayName}${anchor}${since}${deprecated} | \n` + content += `${escapeMarkdown(defaultValue)} | \n` + content += `${escapeMarkdown(types)} | \n` + content += `
\n`
+ content += ` ${converter
+ .makeHtml(description)
+ .replaceAll(/(.*?)<\/code>/g, ' | \n`
+ content += `
Property | +Default | +Type | +
---|---|---|
activeItemKey# | +- | +{`string`} , {`number`} |
+
+ The active item key. + |
+ ||
alwaysOpen# | +{`false`} |
+ {`boolean`} |
+
+ Make accordion items stay open when another item is opened + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
flush# | +- | +{`boolean`} |
+
+ Removes the default background-color, some borders, and some rounded corners to render accordions edge-to-edge with their parent container. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
id# | +- | +{`string`} |
+
+ The id global attribute defines an identifier (ID) that must be unique in the whole document. + |
+ ||
itemKey# | +- | +{`string`} , {`number`} |
+
+ Item key. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
color# | +{`primary`} |
+ {`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+ ||
dismissible# | +- | +{`boolean`} |
+
+ Optionally add a close button to alert and allow it to self dismiss. + |
+ ||
onClose# | +- | +{`() => void`} |
+
+ Callback fired when the component requests to be closed. + |
+ ||
variant# | +- | +{`string`} |
+
+ Set the alert variant to a solid. + |
+ ||
visible# | +{`true`} |
+ {`boolean`} |
+
+ Toggle the visibility of component. + |
+
Property | +Default | +Type | +
---|---|---|
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'h4')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
color# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+ ||
shape# | +- | +{`'rounded'`} , {`'rounded-top'`} , {`'rounded-end'`} , {`'rounded-bottom'`} , {`'rounded-start'`} , {`'rounded-circle'`} , {`'rounded-pill'`} , {`'rounded-0'`} , {`'rounded-1'`} , {`'rounded-2'`} , {`'rounded-3'`} , {`string`} |
+
+ Select the shape of the component. + |
+ ||
size# | +- | +{`string`} |
+
+ Size the component small, large, or extra large. + |
+ ||
src# | +- | +{`string`} |
+
+ The src attribute for the img element. + |
+ ||
status# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the status indicator to one of CoreUI’s themed colors. + |
+ ||
textColor# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`'primary-emphasis'`} , {`'secondary-emphasis'`} , {`'success-emphasis'`} , {`'danger-emphasis'`} , {`'warning-emphasis'`} , {`'info-emphasis'`} , {`'light-emphasis'`} , {`'body'`} , {`'body-emphasis'`} , {`'body-secondary'`} , {`'body-tertiary'`} , {`'black'`} , {`'black-50'`} , {`'white'`} , {`'white-50'`} , {`string`} |
+
+ Sets the text color of the component to one of CoreUI’s themed colors. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +{`modal-backdrop`} |
+ {`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
visible# | +- | +{`boolean`} |
+
+ Toggle the visibility of modal component. + |
+
Property | +Default | +Type | +
---|---|---|
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'span')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
color# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+ ||
position# | +- | +{`'top-start'`} , {`'top-end'`} , {`'bottom-end'`} , {`'bottom-start'`} |
+
+ Position badge in one of the corners of a link or button. + |
+ ||
shape# | +- | +{`'rounded'`} , {`'rounded-top'`} , {`'rounded-end'`} , {`'rounded-bottom'`} , {`'rounded-start'`} , {`'rounded-circle'`} , {`'rounded-pill'`} , {`'rounded-0'`} , {`'rounded-1'`} , {`'rounded-2'`} , {`'rounded-3'`} , {`string`} |
+
+ Select the shape of the component. + |
+ ||
size# | +- | +{`'sm'`} |
+
+ Size the component small. + |
+ ||
textBgColor#5.0.0+ | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the component's color scheme to one of CoreUI's themed colors, ensuring the text color contrast adheres to the WCAG 4.5:1 contrast ratio standard for accessibility. + |
+ ||
textColor# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`'primary-emphasis'`} , {`'secondary-emphasis'`} , {`'success-emphasis'`} , {`'danger-emphasis'`} , {`'warning-emphasis'`} , {`'info-emphasis'`} , {`'light-emphasis'`} , {`'body'`} , {`'body-emphasis'`} , {`'body-secondary'`} , {`'body-tertiary'`} , {`'black'`} , {`'black-50'`} , {`'white'`} , {`'white-50'`} , {`string`} |
+
+ Sets the text color of the component to one of CoreUI’s themed colors. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+
Property | +Default | +Type | +
---|---|---|
active# | +- | +{`boolean`} |
+
+ Toggle the active state for the component. + |
+ ||
as#5.4.0+ | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'li')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
href# | +- | +{`string`} |
+
+ The |
+
Property | +Default | +Type | +
---|---|---|
active# | +- | +{`boolean`} |
+
+ Toggle the active state for the component. + |
+ ||
as# | +{`button`} |
+ {`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'button')`} , {`(ElementType & 'cite')`} , {`(ElementType & 'data')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
color# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+ ||
disabled# | +- | +{`boolean`} |
+
+ Toggle the disabled state for the component. + |
+ ||
href# | +- | +{`string`} |
+
+ The href attribute specifies the URL of the page the link goes to. + |
+ ||
role# | +- | +{`string`} |
+
+ The role attribute describes the role of an element in programs that can make use of it, such as screen readers or magnifiers. + |
+ ||
shape# | +- | +{`'rounded'`} , {`'rounded-top'`} , {`'rounded-end'`} , {`'rounded-bottom'`} , {`'rounded-start'`} , {`'rounded-circle'`} , {`'rounded-pill'`} , {`'rounded-0'`} , {`'rounded-1'`} , {`'rounded-2'`} , {`'rounded-3'`} , {`string`} |
+
+ Select the shape of the component. + |
+ ||
size# | +- | +{`'sm'`} , {`'lg'`} |
+
+ Size the component small or large. + |
+ ||
type# | +{`button`} |
+ {`'button'`} , {`'submit'`} , {`'reset'`} |
+
+ Specifies the type of button. Always specify the type attribute for the |
+ ||
variant# | +- | +{`'outline'`} , {`'ghost'`} |
+
+ Set the button variant to an outlined button or a ghost button. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
size# | +- | +{`'sm'`} , {`'lg'`} |
+
+ Size the component small or large. + |
+ ||
vertical# | +- | +{`boolean`} |
+
+ Create a set of buttons that appear vertically stacked rather than horizontally. Split button dropdowns are not supported here. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
color# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
color# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+ ||
textBgColor#5.0.0+ | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the component's color scheme to one of CoreUI's themed colors, ensuring the text color contrast adheres to the WCAG 4.5:1 contrast ratio standard for accessibility. + |
+ ||
textColor# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`'primary-emphasis'`} , {`'secondary-emphasis'`} , {`'success-emphasis'`} , {`'danger-emphasis'`} , {`'warning-emphasis'`} , {`'info-emphasis'`} , {`'light-emphasis'`} , {`'body'`} , {`'body-emphasis'`} , {`'body-secondary'`} , {`'body-tertiary'`} , {`'black'`} , {`'black-50'`} , {`'white'`} , {`'white-50'`} , {`string`} |
+
+ Sets the text color context of the component to one of CoreUI’s themed colors. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+
Property | +Default | +Type | +
---|---|---|
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'div')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+
Property | +Default | +Type | +
---|---|---|
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'img')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
orientation# | +- | +{`'top'`} , {`'bottom'`} |
+
+ Optionally orientate the image to the top, bottom, or make it overlaid across the card. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
href# | +- | +{`string`} |
+
+ The href attribute specifies the URL of the page the link goes to. + |
+
Property | +Default | +Type | +
---|---|---|
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'h6')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+
Property | +Default | +Type | +
---|---|---|
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'p')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+
Property | +Default | +Type | +
---|---|---|
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'h5')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+
Property | +Default | +Type | +
---|---|---|
activeIndex# | +{`0`} |
+ {`number`} |
+
+ index of the active item. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
controls# | +- | +{`boolean`} |
+
+ Adding in the previous and next controls. + |
+ ||
dark# | +- | +{`boolean`} |
+
+ Add darker controls, indicators, and captions. + |
+ ||
indicators# | +- | +{`boolean`} |
+
+ Adding indicators at the bottom of the carousel for each item. + |
+ ||
interval# | +{`5000`} |
+ {`number`} , {`boolean`} |
+
+ The amount of time to delay between automatically cycling an item. If false, carousel will not automatically cycle. + |
+ ||
onSlid# | +- | +{`(active: number, direction: string) => void`} |
+
+ Callback fired when a slide transition end. + |
+ ||
onSlide# | +- | +{`(active: number, direction: string) => void`} |
+
+ Callback fired when a slide transition starts. + |
+ ||
pause# | +{`hover`} |
+ {`boolean`} , {`'hover'`} |
+
+ If set to 'hover', pauses the cycling of the carousel on mouseenter and resumes the cycling of the carousel on mouseleave. If set to false, hovering over the carousel won't pause it. + |
+ ||
touch#4.5.0+ | +{`true`} |
+ {`boolean`} |
+
+ Set whether the carousel should support left/right swipe interactions on touchscreen devices. + |
+ ||
transition# | +- | +{`'slide'`} , {`'crossfade'`} |
+
+ Set type of the transition. + |
+ ||
wrap# | +{`true`} |
+ {`boolean`} |
+
+ Set whether the carousel should cycle continuously or have hard stops. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
interval# | +{`false`} |
+ {`number`} , {`boolean`} |
+
+ The amount of time to delay between automatically cycling an item. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
customTooltips# | +{`true`} |
+ {`boolean`} |
+
+ Enables custom html based tooltips instead of standard tooltips. + |
+ ||
data# | +- | +{`ChartData\ , {`((canvas: HTMLCanvasElement) => ChartData\<...>)`} |
+
+ The data object that is passed into the Chart.js chart (more info). + |
+ ||
fallbackContent# | +- | +{`React.ReactNode`} |
+
+ A fallback for when the canvas cannot be rendered. Can be used for accessible chart descriptions. + |
+ ||
getDatasetAtEvent# | +- | +{`(dataset: InteractionItem[], event: React.MouseEvent\ |
+
+ Proxy for Chart.js getDatasetAtEvent. Calls with dataset and triggering event. + |
+ ||
getElementAtEvent# | +- | +{`(element: InteractionItem[], event: React.MouseEvent\ |
+
+ Proxy for Chart.js getElementAtEvent. Calls with single element array and triggering event. + |
+ ||
getElementsAtEvent# | +- | +{`(elements: InteractionItem[], event: React.MouseEvent\ |
+
+ Proxy for Chart.js getElementsAtEvent. Calls with element array and triggering event. + |
+ ||
height# | +{`150`} |
+ {`number`} |
+
+ Height attribute applied to the rendered canvas. + |
+ ||
id# | +- | +{`string`} |
+
+ ID attribute applied to the rendered canvas. + |
+ ||
options# | +- | +{`_DeepPartialObject\ |
+
+ The options object that is passed into the Chart.js chart. + |
+ ||
plugins# | +{`[]`} |
+ {`Plugin\ |
+
+ The plugins array that is passed into the Chart.js chart (more info) + |
+ ||
redraw# | +{`false`} |
+ {`boolean`} |
+
+ If true, will tear down and redraw chart on all updates. + |
+ ||
type# | +{`bar`} |
+ {`{'line' | 'bar' | 'radar' | 'doughnut' | 'polarArea' | 'bubble' | 'pie' | 'scatter'}`} |
+
+ Chart.js chart type. + |
+ ||
width# | +{`300`} |
+ {`number`} |
+
+ Width attribute applied to the rendered canvas. + |
+ ||
wrapper# | +{`true`} |
+ {`boolean`} |
+
+ Put the chart into the wrapper div element. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
customTooltips# | +{`true`} |
+ {`boolean`} |
+
+ Enables custom html based tooltips instead of standard tooltips. + |
+ ||
data# | +- | +{`ChartData\ , {`((canvas: HTMLCanvasElement) => ChartData\<...>)`} |
+
+ The data object that is passed into the Chart.js chart (more info). + |
+ ||
fallbackContent# | +- | +{`React.ReactNode`} |
+
+ A fallback for when the canvas cannot be rendered. Can be used for accessible chart descriptions. + |
+ ||
getDatasetAtEvent# | +- | +{`(dataset: InteractionItem[], event: React.MouseEvent\ |
+
+ Proxy for Chart.js getDatasetAtEvent. Calls with dataset and triggering event. + |
+ ||
getElementAtEvent# | +- | +{`(element: InteractionItem[], event: React.MouseEvent\ |
+
+ Proxy for Chart.js getElementAtEvent. Calls with single element array and triggering event. + |
+ ||
getElementsAtEvent# | +- | +{`(elements: InteractionItem[], event: React.MouseEvent\ |
+
+ Proxy for Chart.js getElementsAtEvent. Calls with element array and triggering event. + |
+ ||
height# | +{`150`} |
+ {`number`} |
+
+ Height attribute applied to the rendered canvas. + |
+ ||
id# | +- | +{`string`} |
+
+ ID attribute applied to the rendered canvas. + |
+ ||
options# | +- | +{`_DeepPartialObject\ |
+
+ The options object that is passed into the Chart.js chart. + |
+ ||
plugins# | +- | +{`Plugin\ |
+
+ The plugins array that is passed into the Chart.js chart (more info) + |
+ ||
redraw# | +{`false`} |
+ {`boolean`} |
+
+ If true, will tear down and redraw chart on all updates. + |
+ ||
width# | +{`300`} |
+ {`number`} |
+
+ Width attribute applied to the rendered canvas. + |
+ ||
wrapper# | +{`true`} |
+ {`boolean`} |
+
+ Put the chart into the wrapper div element. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
dark# | +- | +{`boolean`} |
+
+ Invert the default color. + |
+ ||
disabled# | +- | +{`boolean`} |
+
+ Toggle the disabled state for the component. + |
+ ||
white#Deprecated 5.0.0 | +- | +{`boolean`} |
+
+ Change the default color to white. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
lg# | +- | +{`{ 'auto' | number | string | boolean | { span: 'auto' | number | string | boolean } | { offset: number | string } | { order: 'first' | 'last' | number | string }}`} |
+
+ The number of columns/offset/order on large devices (<1200px). + |
+ ||
md# | +- | +{`{ 'auto' | number | string | boolean | { span: 'auto' | number | string | boolean } | { offset: number | string } | { order: 'first' | 'last' | number | string }}`} |
+
+ The number of columns/offset/order on medium devices (<992px). + |
+ ||
sm# | +- | +{`{ 'auto' | number | string | boolean | { span: 'auto' | number | string | boolean } | { offset: number | string } | { order: 'first' | 'last' | number | string }}`} |
+
+ The number of columns/offset/order on small devices (<768px). + |
+ ||
xl# | +- | +{`{ 'auto' | number | string | boolean | { span: 'auto' | number | string | boolean } | { offset: number | string } | { order: 'first' | 'last' | number | string }}`} |
+
+ The number of columns/offset/order on X-Large devices (<1400px). + |
+ ||
xs# | +- | +{`{ 'auto' | number | string | boolean | { span: 'auto' | number | string | boolean } | { offset: number | string } | { order: 'first' | 'last' | number | string }}`} |
+
+ The number of columns/offset/order on extra small devices (<576px). + |
+ ||
xxl# | +- | +{`{ 'auto' | number | string | boolean | { span: 'auto' | number | string | boolean } | { offset: number | string } | { order: 'first' | 'last' | number | string }}`} |
+
+ The number of columns/offset/order on XX-Large devices (≥1400px). + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
horizontal# | +- | +{`boolean`} |
+
+ Set horizontal collapsing to transition the width instead of height. + |
+ ||
onHide# | +- | +{`() => void`} |
+
+ Callback fired when the component requests to be hidden. + |
+ ||
onShow# | +- | +{`() => void`} |
+
+ Callback fired when the component requests to be shown. + |
+ ||
visible# | +- | +{`boolean`} |
+
+ Toggle the visibility of component. + |
+
Property | +Default | +Type | +
---|---|---|
container#4.11.0+ | +- | +{`DocumentFragment`} , {`Element`} , {`(() => DocumentFragment | Element)`} |
+
+ An HTML element or function that returns a single element, with |
+ ||
portal# | +- | +{`boolean`} |
+
+ Render some children into a different part of the DOM + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
fluid# | +- | +{`boolean`} |
+
+ Set container 100% wide, spanning the entire width of the viewport. + |
+ ||
lg# | +- | +{`boolean`} |
+
+ Set container 100% wide until large breakpoint. + |
+ ||
md# | +- | +{`boolean`} |
+
+ Set container 100% wide until medium breakpoint. + |
+ ||
sm# | +- | +{`boolean`} |
+
+ Set container 100% wide until small breakpoint. + |
+ ||
xl# | +- | +{`boolean`} |
+
+ Set container 100% wide until X-large breakpoint. + |
+ ||
xxl# | +- | +{`boolean`} |
+
+ Set container 100% wide until XX-large breakpoint. + |
+
Property | +Default | +Type | +
---|---|---|
alignment# | +- | +{`'start'`} , {`'end'`} , {`{ xs: 'start' | 'end' }`} , {`{ sm: 'start' | 'end' }`} , {`{ md: 'start' | 'end' }`} , {`{ lg: 'start' | 'end' }`} , {`{ xl: 'start' | 'end'}`} , {`{ xxl: 'start' | 'end'}`} |
+
+ Specifies the alignment of the React Dropdown Menu within this React Dropdown. + |
+ ||
as# | +{`div`} |
+ {`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'div')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Determines the root node component (native HTML element or a custom React component) for the React Dropdown. + |
+ ||
autoClose# | +{`true`} |
+ {`boolean`} , {`'inside'`} , {`'outside'`} |
+
+ Configures automatic closing behavior for the React Dropdown: +
|
+ ||
className# | +- | +{`string`} |
+
+ Adds custom classes to the React Dropdown root element. + |
+ ||
container#4.11.0+ | +- | +{`Element`} , {`DocumentFragment`} , {`(() => Element | DocumentFragment)`} |
+
+ Appends the React Dropdown Menu to a specific element. You can pass an HTML element or a function returning an element. Defaults to |
+ ||
dark# | +- | +{`boolean`} |
+
+ Applies a darker color scheme to the React Dropdown Menu, often used within dark navbars. + |
+ ||
direction# | +- | +{`'center'`} , {`'dropup'`} , {`'dropup-center'`} , {`'dropend'`} , {`'dropstart'`} |
+
+ Specifies the direction of the React Dropdown. + |
+ ||
offset# | +{`[0, 2]`} |
+ {`[number, number]`} |
+
+ Defines x and y offsets ([x, y]) for the React Dropdown Menu relative to its target. + |
+ ||
onHide#4.9.0+ | +- | +{`() => void`} |
+
+ Callback fired right before the React Dropdown becomes hidden. + |
+ ||
onShow# | +- | +{`() => void`} |
+
+ Callback fired immediately after the React Dropdown is displayed. + |
+ ||
placement# | +{`bottom-start`} |
+ {`'auto'`} , {`'auto-start'`} , {`'auto-end'`} , {`'top-end'`} , {`'top'`} , {`'top-start'`} , {`'bottom-end'`} , {`'bottom'`} , {`'bottom-start'`} , {`'right-start'`} , {`'right'`} , {`'right-end'`} , {`'left-start'`} , {`'left'`} , {`'left-end'`} |
+
+ Determines the placement of the React Dropdown Menu after Popper.js modifiers. + |
+ ||
popper# | +{`true`} |
+ {`boolean`} |
+
+ Enables or disables dynamic positioning via Popper.js for the React Dropdown Menu. + |
+ ||
popperConfig#5.5.0+ | +- | +{`Partial\ , {`((defaultPopperConfig: Partial\ |
+
+ Provides a custom Popper.js configuration or a function that returns a modified Popper.js configuration for advanced positioning of the React Dropdown Menu. Read more + |
+ ||
portal#4.8.0+ | +{`false`} |
+ {`boolean`} |
+
+ Renders the React Dropdown Menu using a React Portal, allowing it to escape the DOM hierarchy for improved positioning. + |
+ ||
variant# | +{`btn-group`} |
+ {`'btn-group'`} , {`'dropdown'`} , {`'input-group'`} , {`'nav-item'`} |
+
+ Defines the visual variant of the React Dropdown + |
+ ||
visible# | +{`false`} |
+ {`boolean`} |
+
+ Controls the visibility of the React Dropdown Menu: +
|
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+
Property | +Default | +Type | +
---|---|---|
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'h6')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+
Property | +Default | +Type | +
---|---|---|
active# | +- | +{`boolean`} |
+
+ Toggle the active state for the component. + |
+ ||
as# | +{`a`} |
+ {`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'a')`} , {`(ElementType & 'cite')`} , {`(ElementType & 'data')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
disabled# | +- | +{`boolean`} |
+
+ Toggle the disabled state for the component. + |
+ ||
href# | +- | +{`string`} |
+
+ The href attribute specifies the URL of the page the link goes to. + |
+
Property | +Default | +Type | +
---|---|---|
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'span')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+
Property | +Default | +Type | +
---|---|---|
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'ul')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+
Property | +Default | +Type | +
---|---|---|
active# | +- | +{`boolean`} |
+
+ Toggle the active state for the component. + |
+ ||
as# | +- | +{`ElementType`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
caret# | +{`true`} |
+ {`boolean`} |
+
+ Enables pseudo element caret on toggler. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
color# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+ ||
custom# | +- | +{`boolean`} |
+
+ Create a custom toggler which accepts any content. + |
+ ||
disabled# | +- | +{`boolean`} |
+
+ Toggle the disabled state for the component. + |
+ ||
href# | +- | +{`string`} |
+
+ The href attribute specifies the URL of the page the link goes to. + |
+ ||
navLink#5.0.0+ | +{`true`} |
+ {`boolean`} |
+
+ If a dropdown |
+ ||
role# | +- | +{`string`} |
+
+ The role attribute describes the role of an element in programs that can make use of it, such as screen readers or magnifiers. + |
+ ||
shape# | +- | +{`'rounded'`} , {`'rounded-top'`} , {`'rounded-end'`} , {`'rounded-bottom'`} , {`'rounded-start'`} , {`'rounded-circle'`} , {`'rounded-pill'`} , {`'rounded-0'`} , {`'rounded-1'`} , {`'rounded-2'`} , {`'rounded-3'`} , {`string`} |
+
+ Select the shape of the component. + |
+ ||
size# | +- | +{`'sm'`} , {`'lg'`} |
+
+ Size the component small or large. + |
+ ||
split# | +- | +{`boolean`} |
+
+ Similarly, create split button dropdowns with virtually the same markup as single button dropdowns, but with the addition of |
+ ||
trigger# | +{`click`} |
+ {`'hover'`} , {`'focus'`} , {`'click'`} |
+
+ Sets which event handlers you’d like provided to your toggle prop. You can specify one trigger or an array of them. + |
+ ||
variant# | +- | +{`'outline'`} , {`'ghost'`} |
+
+ Set the button variant to an outlined button or a ghost button. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
position# | +- | +{`'fixed'`} , {`'sticky'`} |
+
+ Place footer in non-static positions. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
validated# | +- | +{`boolean`} |
+
+ Mark a form as validated. If you set it |
+
Property | +Default | +Type | +
---|---|---|
button# | +- | +{`ButtonObject`} |
+
+ Create button-like checkboxes and radio buttons. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
feedback#4.2.0+ | +- | +{`ReactNode`} |
+
+ Provide valuable, actionable feedback. + |
+ ||
feedbackInvalid#4.2.0+ | +- | +{`ReactNode`} |
+
+ Provide valuable, actionable feedback. + |
+ ||
feedbackValid#4.2.0+ | +- | +{`ReactNode`} |
+
+ Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, |
+ ||
floatingLabel#4.2.0+ | +- | +{`ReactNode`} |
+
+ Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, |
+ ||
hitArea# | +- | +{`'full'`} |
+
+ Sets hit area to the full area of the component. + |
+ ||
id# | +- | +{`string`} |
+
+ The id global attribute defines an identifier (ID) that must be unique in the whole document. + |
+ ||
indeterminate# | +- | +{`boolean`} |
+
+ Input Checkbox indeterminate Property. + |
+ ||
inline# | +- | +{`boolean`} |
+
+ Group checkboxes or radios on the same horizontal row. + |
+ ||
invalid# | +- | +{`boolean`} |
+
+ Set component validation state to invalid. + |
+ ||
label# | +- | +{`ReactNode`} |
+
+ The element represents a caption for a component. + |
+ ||
reverse# | +- | +{`boolean`} |
+
+ Put checkboxes or radios on the opposite side. + |
+ ||
tooltipFeedback#4.2.0+ | +- | +{`boolean`} |
+
+ Display validation feedback in a styled tooltip. + |
+ ||
type# | +{`checkbox`} |
+ {`'checkbox'`} , {`'radio'`} |
+
+ Specifies the type of component. + |
+ ||
valid# | +- | +{`boolean`} |
+
+ Set component validation state to valid. + |
+
Property | +Default | +Type | +
---|---|---|
feedback#4.2.0+ | +- | +{`ReactNode`} |
+
+ Provide valuable, actionable feedback. + |
+ ||
feedbackInvalid#4.2.0+ | +- | +{`ReactNode`} |
+
+ Provide valuable, actionable feedback. + |
+ ||
feedbackValid#4.2.0+ | +- | +{`ReactNode`} |
+
+ Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, |
+ ||
floatingLabel#4.2.0+ | +- | +{`ReactNode`} |
+
+ Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, |
+ ||
invalid# | +- | +{`boolean`} |
+
+ Set component validation state to invalid. + |
+ ||
tooltipFeedback#4.2.0+ | +- | +{`boolean`} |
+
+ Display validation feedback in a styled tooltip. + |
+ ||
valid# | +- | +{`boolean`} |
+
+ Set component validation state to valid. + |
+
Property | +Default | +Type | +
---|---|---|
feedback#4.2.0+ | +- | +{`ReactNode`} |
+
+ Provide valuable, actionable feedback. + |
+ ||
feedbackInvalid#4.2.0+ | +- | +{`ReactNode`} |
+
+ Provide valuable, actionable feedback. + |
+ ||
feedbackValid#4.2.0+ | +- | +{`ReactNode`} |
+
+ Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, |
+ ||
floatingClassName#4.5.0+ | +- | +{`string`} |
+
+ A string of all className you want applied to the floating label wrapper. + |
+ ||
floatingLabel#4.2.0+ | +- | +{`ReactNode`} |
+
+ Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, |
+ ||
invalid# | +- | +{`boolean`} |
+
+ Set component validation state to invalid. + |
+ ||
label#4.2.0+ | +- | +{`ReactNode`} |
+
+ Add a caption for a component. + |
+ ||
text#4.2.0+ | +- | +{`ReactNode`} |
+
+ Add helper text to the component. + |
+ ||
tooltipFeedback#4.2.0+ | +- | +{`boolean`} |
+
+ Display validation feedback in a styled tooltip. + |
+ ||
valid# | +- | +{`boolean`} |
+
+ Set component validation state to valid. + |
+
Property | +Default | +Type | +
---|---|---|
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'div')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
invalid# | +- | +{`boolean`} |
+
+ Method called immediately after the |
+ ||
tooltip# | +- | +{`boolean`} |
+
+ If your form layout allows it, you can display validation feedback in a styled tooltip. + |
+ ||
valid# | +- | +{`boolean`} |
+
+ Set component validation state to valid. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
delay# | +{`false`} |
+ {`number`} , {`boolean`} |
+
+ Delay onChange event while typing. If set to true onChange event will be delayed 500ms, you can also provide the number of milliseconds you want to delay the onChange event. + |
+ ||
disabled# | +- | +{`boolean`} |
+
+ Toggle the disabled state for the component. + |
+ ||
feedback#4.2.0+ | +- | +{`ReactNode`} |
+
+ Provide valuable, actionable feedback. + |
+ ||
feedbackInvalid#4.2.0+ | +- | +{`ReactNode`} |
+
+ Provide valuable, actionable feedback. + |
+ ||
feedbackValid#4.2.0+ | +- | +{`ReactNode`} |
+
+ Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, |
+ ||
floatingClassName#4.5.0+ | +- | +{`string`} |
+
+ A string of all className you want applied to the floating label wrapper. + |
+ ||
floatingLabel#4.2.0+ | +- | +{`ReactNode`} |
+
+ Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, |
+ ||
invalid# | +- | +{`boolean`} |
+
+ Set component validation state to invalid. + |
+ ||
label#4.2.0+ | +- | +{`ReactNode`} |
+
+ Add a caption for a component. + |
+ ||
onChange# | +- | +{`ChangeEventHandler\ |
+
+ Method called immediately after the |
+ ||
plainText# | +- | +{`boolean`} |
+
+ Render the component styled as plain text. Removes the default form field styling and preserve the correct margin and padding. Recommend to use only along side |
+ ||
readOnly# | +- | +{`boolean`} |
+
+ Toggle the readonly state for the component. + |
+ ||
size# | +- | +{`'sm'`} , {`'lg'`} |
+
+ Size the component small or large. + |
+ ||
text#4.2.0+ | +- | +{`ReactNode`} |
+
+ Add helper text to the component. + |
+ ||
tooltipFeedback#4.2.0+ | +- | +{`boolean`} |
+
+ Display validation feedback in a styled tooltip. + |
+ ||
type# | +{`text`} |
+ {`string`} |
+
+ Specifies the type of component. + |
+ ||
valid# | +- | +{`boolean`} |
+
+ Set component validation state to valid. + |
+ ||
value# | +- | +{`string`} , {`number`} , {`string[]`} |
+
+ The |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
customClassName# | +- | +{`string`} |
+
+ A string of all className you want to be applied to the component, and override standard className value. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
disabled# | +- | +{`boolean`} |
+
+ Toggle the disabled state for the component. + |
+ ||
label#4.2.0+ | +- | +{`ReactNode`} |
+
+ Add a caption for a component. + |
+ ||
max# | +- | +{`number`} |
+
+ Specifies the maximum value for the component. + |
+ ||
min# | +- | +{`number`} |
+
+ Specifies the minimum value for the component. + |
+ ||
onChange# | +- | +{`ChangeEventHandler\ |
+
+ Method called immediately after the |
+ ||
readOnly# | +- | +{`boolean`} |
+
+ Toggle the readonly state for the component. + |
+ ||
step# | +- | +{`number`} |
+
+ Specifies the interval between legal numbers in the component. + |
+ ||
value# | +- | +{`string`} , {`number`} , {`string[]`} |
+
+ The |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
feedback#4.2.0+ | +- | +{`ReactNode`} |
+
+ Provide valuable, actionable feedback. + |
+ ||
feedbackInvalid#4.2.0+ | +- | +{`ReactNode`} |
+
+ Provide valuable, actionable feedback. + |
+ ||
feedbackValid#4.2.0+ | +- | +{`ReactNode`} |
+
+ Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, |
+ ||
floatingClassName#4.5.0+ | +- | +{`string`} |
+
+ A string of all className you want applied to the floating label wrapper. + |
+ ||
floatingLabel#4.2.0+ | +- | +{`ReactNode`} |
+
+ Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, |
+ ||
htmlSize# | +- | +{`number`} |
+
+ Specifies the number of visible options in a drop-down list. + |
+ ||
invalid# | +- | +{`boolean`} |
+
+ Set component validation state to invalid. + |
+ ||
label#4.2.0+ | +- | +{`ReactNode`} |
+
+ Add a caption for a component. + |
+ ||
onChange# | +- | +{`ChangeEventHandler\ |
+
+ Method called immediately after the |
+ ||
options# | +- | +{`Option[]`} , {`string[]`} |
+
+ Options list of the select component. Available keys:
|
+ ||
size# | +- | +{`'sm'`} , {`'lg'`} |
+
+ Size the component small or large. + |
+ ||
text#4.2.0+ | +- | +{`ReactNode`} |
+
+ Add helper text to the component. + |
+ ||
tooltipFeedback#4.2.0+ | +- | +{`boolean`} |
+
+ Display validation feedback in a styled tooltip. + |
+ ||
valid# | +- | +{`boolean`} |
+
+ Set component validation state to valid. + |
+ ||
value# | +- | +{`string`} , {`number`} , {`string[]`} |
+
+ The |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
id# | +- | +{`string`} |
+
+ The id global attribute defines an identifier (ID) that must be unique in the whole document. + |
+ ||
invalid# | +- | +{`boolean`} |
+
+ Set component validation state to invalid. + |
+ ||
label# | +- | +{`ReactNode`} |
+
+ The element represents a caption for a component. + |
+ ||
reverse# | +- | +{`boolean`} |
+
+ Put switch on the opposite side. + |
+ ||
size# | +- | +{`'lg'`} , {`'xl'`} |
+
+ Size the component large or extra large. Works only with |
+ ||
type# | +{`checkbox`} |
+ {`'checkbox'`} , {`'radio'`} |
+
+ Specifies the type of component. + |
+ ||
valid# | +- | +{`boolean`} |
+
+ Set component validation state to valid. + |
+
Property | +Default | +Type | +
---|---|---|
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'div')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
disabled# | +- | +{`boolean`} |
+
+ Toggle the disabled state for the component. + |
+ ||
feedback#4.2.0+ | +- | +{`ReactNode`} |
+
+ Provide valuable, actionable feedback. + |
+ ||
feedbackInvalid#4.2.0+ | +- | +{`ReactNode`} |
+
+ Provide valuable, actionable feedback. + |
+ ||
feedbackValid#4.2.0+ | +- | +{`ReactNode`} |
+
+ Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, |
+ ||
floatingClassName#4.5.0+ | +- | +{`string`} |
+
+ A string of all className you want applied to the floating label wrapper. + |
+ ||
floatingLabel#4.2.0+ | +- | +{`ReactNode`} |
+
+ Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, |
+ ||
invalid# | +- | +{`boolean`} |
+
+ Set component validation state to invalid. + |
+ ||
label#4.2.0+ | +- | +{`ReactNode`} |
+
+ Add a caption for a component. + |
+ ||
onChange# | +- | +{`ChangeEventHandler\ |
+
+ Method called immediately after the |
+ ||
plainText# | +- | +{`boolean`} |
+
+ Render the component styled as plain text. Removes the default form field styling and preserve the correct margin and padding. Recommend to use only along side |
+ ||
readOnly# | +- | +{`boolean`} |
+
+ Toggle the readonly state for the component. + |
+ ||
text#4.2.0+ | +- | +{`ReactNode`} |
+
+ Add helper text to the component. + |
+ ||
tooltipFeedback#4.2.0+ | +- | +{`boolean`} |
+
+ Display validation feedback in a styled tooltip. + |
+ ||
valid# | +- | +{`boolean`} |
+
+ Set component validation state to valid. + |
+ ||
value# | +- | +{`string`} , {`number`} , {`string[]`} |
+
+ The |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
container# | +- | +{`boolean`} , {`'sm'`} , {`'md'`} , {`'lg'`} , {`'xl'`} , {`'xxl'`} , {`'fluid'`} |
+
+ Defines optional container wrapping children elements. + |
+ ||
position# | +- | +{`'fixed'`} , {`'sticky'`} |
+
+ Place header in non-static positions. + |
+
Property | +Default | +Type | +
---|---|---|
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'a')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+
Property | +Default | +Type | +
---|---|---|
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'ul')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
content#Deprecated 3.0 | +- | +{`string`} , {`string[]`} |
+
+ Use |
+ ||
customClassName# | +- | +{`string`} , {`string[]`} |
+
+ Use for replacing default CIcon component classes. Prop is overriding the 'size' prop. + |
+ ||
height# | +- | +{`number`} |
+
+ The height attribute defines the vertical length of an icon. + |
+ ||
icon# | +- | +{`string`} , {`string[]`} |
+
+ Name of the icon placed in React object or SVG content. + |
+ ||
name#Deprecated 3.0 | +- | +{`string`} |
+
+ Use |
+ ||
size# | +- | +{`'custom'`} , {`'custom-size'`} , {`'sm'`} , {`'lg'`} , {`'xl'`} , {`'xxl'`} , {`'3xl'`} , {`'4xl'`} , {`'5xl'`} , {`'6xl'`} , {`'7xl'`} , {`'8xl'`} , {`'9xl'`} |
+
+ Size of the icon. Available sizes: 'sm', 'lg', 'xl', 'xxl', '3xl…9xl', 'custom', 'custom-size'. + |
+ ||
title# | +- | +{`string`} |
+
+ Title tag content. + |
+ ||
use# | +- | +{`string`} |
+
+ If defined component will be rendered using 'use' tag. + |
+ ||
viewBox# | +- | +{`string`} |
+
+ The viewBox attribute defines the position and dimension of an SVG viewport. + |
+ ||
width# | +- | +{`number`} |
+
+ The width attribute defines the horizontal length of an icon. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
customClassName# | +- | +{`string`} , {`string[]`} |
+
+ Use for replacing default CIcon component classes. Prop is overriding the 'size' prop. + |
+ ||
height# | +- | +{`number`} |
+
+ The height attribute defines the vertical length of an icon. + |
+ ||
size# | +- | +{`'custom'`} , {`'custom-size'`} , {`'sm'`} , {`'lg'`} , {`'xl'`} , {`'xxl'`} , {`'3xl'`} , {`'4xl'`} , {`'5xl'`} , {`'6xl'`} , {`'7xl'`} , {`'8xl'`} , {`'9xl'`} |
+
+ Size of the icon. Available sizes: 'sm', 'lg', 'xl', 'xxl', '3xl…9xl', 'custom', 'custom-size'. + |
+ ||
title# | +- | +{`string`} |
+
+ Title tag content. + |
+ ||
width# | +- | +{`number`} |
+
+ The width attribute defines the horizontal length of an icon. + |
+
Property | +Default | +Type | +
---|---|---|
align# | +- | +{`'start'`} , {`'center'`} , {`'end'`} |
+
+ Set the horizontal aligment. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
fluid# | +- | +{`boolean`} |
+
+ Make image responsive. + |
+ ||
rounded# | +- | +{`boolean`} |
+
+ Make image rounded. + |
+ ||
thumbnail# | +- | +{`boolean`} |
+
+ Give an image a rounded 1px border appearance. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
size# | +- | +{`'sm'`} , {`'lg'`} |
+
+ Size the component small or large. + |
+
Property | +Default | +Type | +
---|---|---|
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'span')`} , {`(ElementType & 'form')`} , {`(ElementType & 'slot')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+
Property | +Default | +Type | +
---|---|---|
active# | +- | +{`boolean`} |
+
+ Toggle the active state for the component. + |
+ ||
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'a')`} , {`(ElementType & 'cite')`} , {`(ElementType & 'data')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
disabled# | +- | +{`boolean`} |
+
+ Toggle the disabled state for the component. + |
+ ||
href# | +- | +{`string`} |
+
+ The href attribute specifies the URL of the page the link goes to. + |
+
Property | +Default | +Type | +
---|---|---|
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'ul')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
flush# | +- | +{`boolean`} |
+
+ Remove some borders and rounded corners to render list group items edge-to-edge in a parent component (e.g., |
+ ||
layout# | +- | +{`'horizontal'`} , {`'horizontal-sm'`} , {`'horizontal-md'`} , {`'horizontal-lg'`} , {`'horizontal-xl'`} , {`'horizontal-xxl'`} |
+
+ Specify a layout type. + |
+
Property | +Default | +Type | +
---|---|---|
active# | +- | +{`boolean`} |
+
+ Toggle the active state for the component. + |
+ ||
as# | +{`li`} |
+ {`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'li')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
color# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+ ||
disabled# | +- | +{`boolean`} |
+
+ Toggle the disabled state for the component. + |
+
Property | +Default | +Type | +
---|---|---|
alignment# | +- | +{`'top'`} , {`'center'`} |
+
+ Align the modal in the center or top of the screen. + |
+ ||
backdrop# | +{`true`} |
+ {`boolean`} , {`'static'`} |
+
+ Apply a backdrop on body while modal is open. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
container#5.3.0+ | +- | +{`Element`} , {`DocumentFragment`} , {`(() => Element | DocumentFragment)`} |
+
+ Appends the react modal to a specific element. You can pass an HTML element or function that returns a single element. By default |
+ ||
focus#4.10.0+ | +{`true`} |
+ {`boolean`} |
+
+ Puts the focus on the modal when shown. + |
+ ||
fullscreen# | +- | +{`boolean`} , {`'sm'`} , {`'md'`} , {`'lg'`} , {`'xl'`} , {`'xxl'`} |
+
+ Set modal to covers the entire user viewport. + |
+ ||
keyboard# | +{`true`} |
+ {`boolean`} |
+
+ Closes the modal when escape key is pressed. + |
+ ||
onClose# | +- | +{`() => void`} |
+
+ Callback fired when the component requests to be closed. + |
+ ||
onClosePrevented# | +- | +{`() => void`} |
+
+ Callback fired when the component requests to be closed. + |
+ ||
onShow# | +- | +{`() => void`} |
+
+ Callback fired when the modal is shown, its backdrop is static and a click outside the modal or an escape key press is performed with the keyboard option set to false. + |
+ ||
portal# | +{`true`} |
+ {`boolean`} |
+
+ Generates modal using createPortal. + |
+ ||
scrollable# | +- | +{`boolean`} |
+
+ Create a scrollable modal that allows scrolling the modal body. + |
+ ||
size# | +- | +{`'sm'`} , {`'lg'`} , {`'xl'`} |
+
+ Size the component small, large, or extra large. + |
+ ||
transition# | +{`true`} |
+ {`boolean`} |
+
+ Remove animation to create modal that simply appear rather than fade in to view. + |
+ ||
unmountOnClose# | +{`true`} |
+ {`boolean`} |
+
+ By default the component is unmounted after close animation, if you want to keep the component mounted set this property to false. + |
+ ||
visible# | +- | +{`boolean`} |
+
+ Toggle the visibility of modal component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+
Property | +Default | +Type | +
---|---|---|
alignment# | +- | +{`'top'`} , {`'center'`} |
+
+ Align the modal in the center or top of the screen. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
fullscreen# | +- | +{`boolean`} , {`'sm'`} , {`'md'`} , {`'lg'`} , {`'xl'`} , {`'xxl'`} |
+
+ Set modal to covers the entire user viewport. + |
+ ||
scrollable# | +- | +{`boolean`} |
+
+ Does the modal dialog itself scroll, or does the whole dialog scroll within the window. + |
+ ||
size# | +- | +{`'sm'`} , {`'lg'`} , {`'xl'`} |
+
+ Size the component small, large, or extra large. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
closeButton# | +{`true`} |
+ {`boolean`} |
+
+ Add a close button component to the header. + |
+
Property | +Default | +Type | +
---|---|---|
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'h5')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+
Property | +Default | +Type | +
---|---|---|
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'ul')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
layout# | +- | +{`'fill'`} , {`'justified'`} |
+
+ Specify a layout type for component. + |
+ ||
variant# | +- | +{`'pills'`} , {`'tabs'`} , {`'underline'`} , {`'underline-border'`} |
+
+ Set the nav variant to tabs or pills. + |
+
Property | +Default | +Type | +
---|---|---|
as#5.0.0+ | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'li')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
compact# | +- | +{`boolean`} |
+
+ Make nav group more compact by cutting all |
+ ||
toggler# | +- | +{`ReactNode`} |
+
+ Set group toggler label. + |
+ ||
visible# | +- | +{`boolean`} |
+
+ Show nav group items. + |
+
Property | +Default | +Type | +
---|---|---|
as#5.0.0+ | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'ul')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+
Property | +Default | +Type | +
---|---|---|
active# | +- | +{`boolean`} |
+
+ Toggle the active state for the component. + |
+ ||
as#5.0.0+ | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'li')`} , {`(ElementType & 'cite')`} , {`(ElementType & 'data')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
disabled# | +- | +{`boolean`} |
+
+ Toggle the disabled state for the component. + |
+ ||
href# | +- | +{`string`} |
+
+ The href attribute specifies the URL of the page the link goes to. + |
+
Property | +Default | +Type | +
---|---|---|
active# | +- | +{`boolean`} |
+
+ Toggle the active state for the component. + |
+ ||
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'a')`} , {`(ElementType & 'cite')`} , {`(ElementType & 'data')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
disabled# | +- | +{`boolean`} |
+
+ Toggle the disabled state for the component. + |
+ ||
href# | +- | +{`string`} |
+
+ The href attribute specifies the URL of the page the link goes to. + |
+
Property | +Default | +Type | +
---|---|---|
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'li')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+
Property | +Default | +Type | +
---|---|---|
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'nav')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
color# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+ ||
colorScheme# | +- | +{`'dark'`} , {`'light'`} |
+
+ Sets if the color of text should be colored for a light or dark background. + |
+ ||
container# | +- | +{`boolean`} , {`'sm'`} , {`'md'`} , {`'lg'`} , {`'xl'`} , {`'xxl'`} , {`'fluid'`} |
+
+ Defines optional container wrapping children elements. + |
+ ||
expand# | +- | +{`boolean`} , {`'sm'`} , {`'md'`} , {`'lg'`} , {`'xl'`} , {`'xxl'`} |
+
+ Defines the responsive breakpoint to determine when content collapses. + |
+ ||
placement# | +- | +{`'fixed-top'`} , {`'fixed-bottom'`} , {`'sticky-top'`} |
+
+ Place component in non-static positions. + |
+
Property | +Default | +Type | +
---|---|---|
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'a')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
href# | +- | +{`string`} |
+
+ The href attribute specifies the URL of the page the link goes to. + |
+
Property | +Default | +Type | +
---|---|---|
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'ul')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+
Property | +Default | +Type | +
---|---|---|
backdrop# | +{`true`} |
+ {`boolean`} , {`'static'`} |
+
+ Apply a backdrop on body while offcanvas is open. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
dark# | +- | +{`boolean`} |
+
+ Sets a darker color scheme. + |
+ ||
keyboard# | +{`true`} |
+ {`boolean`} |
+
+ Closes the offcanvas when escape key is pressed. + |
+ ||
onHide# | +- | +{`() => void`} |
+
+ Callback fired when the component requests to be hidden. + |
+ ||
onShow# | +- | +{`() => void`} |
+
+ Callback fired when the component requests to be shown. + |
+ ||
placement# | +- | +{`'start'`} , {`'end'`} , {`'top'`} , {`'bottom'`} |
+
+ Components placement, there’s no default placement. + |
+ ||
portal# | +{`false`} |
+ {`boolean`} |
+
+ Generates modal using createPortal. + |
+ ||
responsive#4.6.0+ | +{`true`} |
+ {`boolean`} , {`'sm'`} , {`'md'`} , {`'lg'`} , {`'xl'`} , {`'xxl'`} |
+
+ Responsive offcanvas property hide content outside the viewport from a specified breakpoint and down. + |
+ ||
scroll# | +{`false`} |
+ {`boolean`} |
+
+ Allow body scrolling while offcanvas is open + |
+ ||
visible# | +{`false`} |
+ {`boolean`} |
+
+ Toggle the visibility of offcanvas component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+
Property | +Default | +Type | +
---|---|---|
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'h5')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+
Property | +Default | +Type | +
---|---|---|
align# | +- | +{`'start'`} , {`'center'`} , {`'end'`} |
+
+ Set the alignment of pagination components. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
size# | +- | +{`'sm'`} , {`'lg'`} |
+
+ Size the component small or large. + |
+
Property | +Default | +Type | +
---|---|---|
active# | +- | +{`boolean`} |
+
+ Toggle the active state for the component. + |
+ ||
as# | +- | +{`(ElementType & string)`} , {`(ElementType & ComponentClass\ , {`(ElementType & FunctionComponent\ |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
disabled# | +- | +{`boolean`} |
+
+ Toggle the disabled state for the component. + |
+
Property | +Default | +Type | +
---|---|---|
animation# | +- | +{`'glow'`} , {`'wave'`} |
+
+ Set animation type to better convey the perception of something being actively loaded. + |
+ ||
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'span')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
color# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+ ||
lg# | +- | +{`number`} |
+
+ The number of columns on large devices (<1200px). + |
+ ||
md# | +- | +{`number`} |
+
+ The number of columns on medium devices (<992px). + |
+ ||
size# | +- | +{`'xs'`} , {`'sm'`} , {`'lg'`} |
+
+ Size the component extra small, small, or large. + |
+ ||
sm# | +- | +{`number`} |
+
+ The number of columns on small devices (<768px). + |
+ ||
xl# | +- | +{`number`} |
+
+ The number of columns on X-Large devices (<1400px). + |
+ ||
xs# | +- | +{`number`} |
+
+ The number of columns on extra small devices (<576px). + |
+ ||
xxl# | +- | +{`number`} |
+
+ The number of columns on XX-Large devices (≥1400px). + |
+
Property | +Default | +Type | +
---|---|---|
animation#4.9.0+ | +{`true`} |
+ {`boolean`} |
+
+ Adds a fade transition animation to the React Popover. + |
+ ||
className# | +- | +{`string`} |
+
+ Custom class name(s) for additional styling. + |
+ ||
container#4.11.0+ | +{`document.body`} |
+ {`Element`} , {`DocumentFragment`} , {`(() => Element | DocumentFragment)`} |
+
+ Defines the container element to which the React Popover is appended.
|
+ ||
content# | +- | +{`ReactNode`} |
+
+ Main content of the React Popover. It can be a string or any valid React node. + |
+ ||
delay#4.9.0+ | +{`0`} |
+ {`number`} , {`{ show: number; hide: number; }`} |
+
+ Delay (in milliseconds) before showing or hiding the React Popover. +
|
+ ||
fallbackPlacements#4.9.0+ | +{`['top', 'right', 'bottom', 'left']`} |
+ {`'top', 'right', 'bottom', 'left'`} , {`('top', 'right', 'bottom', 'left')[]`} |
+
+ Specifies the fallback placements when the preferred |
+ ||
offset# | +{`[0, 8]`} |
+ {`[number, number]`} |
+
+ Offset of the React Popover relative to its toggle element, in the form |
+ ||
onHide# | +- | +{`() => void`} |
+
+ Invoked when the React Popover is about to hide. + |
+ ||
onShow# | +- | +{`() => void`} |
+
+ Invoked when the React Popover is about to show. + |
+ ||
placement# | +{`top`} |
+ {`'auto'`} , {`'top'`} , {`'bottom'`} , {`'right'`} , {`'left'`} |
+
+ Placement of the React Popover. Popper.js may override this based on available space. + |
+ ||
popperConfig#5.5.0+ | +- | +{`Partial\ , {`((defaultPopperConfig: Partial\ |
+
+ Allows customization of the Popper.js configuration for the React Popover. |
+ ||
title# | +- | +{`ReactNode`} |
+
+ Title for the React Popover header. Can be a string or any valid React node. + |
+ ||
trigger# | +{`click`} |
+ {`'hover'`} , {`'focus'`} , {`'click'`} , {`('hover' | 'focus' | 'click')[]`} |
+
+ Determines which events trigger the visibility of the React Popover. Can be a single trigger or an array of triggers. + |
+ ||
visible# | +- | +{`boolean`} |
+
+ Controls the visibility of the React Popover. +
|
+
Property | +Default | +Type | +
---|---|---|
animated# | +- | +{`boolean`} |
+
+ Use to animate the stripes right to left via CSS3 animations. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
color# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+ ||
height# | +- | +{`number`} |
+
+ Sets the height of the component. If you set that value the inner |
+ ||
progressBarClassName#4.9.0+ | +- | +{`string`} |
+
+ A string of all className you want applied to the |
+ ||
thin# | +- | +{`boolean`} |
+
+ Makes progress bar thinner. + |
+ ||
value# | +- | +{`number`} |
+
+ The percent to progress the ProgressBar (out of 100). + |
+ ||
variant# | +- | +{`'striped'`} |
+
+ Set the progress bar variant to optional striped. + |
+ ||
white# | +- | +{`boolean`} |
+
+ Change the default color to white. + |
+
Property | +Default | +Type | +
---|---|---|
animated# | +- | +{`boolean`} |
+
+ Use to animate the stripes right to left via CSS3 animations. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
color# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+ ||
value# | +{`0`} |
+ {`number`} |
+
+ The percent to progress the ProgressBar. + |
+ ||
variant# | +- | +{`'striped'`} |
+
+ Set the progress bar variant to optional striped. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
lg# | +- | +{`{{ cols: 'auto' | number | string } | { gutter: number | string } | { gutterX: number | string } | { gutterY: number | string }}`} |
+
+ The number of columns/offset/order on large devices (<1200px). + |
+ ||
md# | +- | +{`{{ cols: 'auto' | number | string } | { gutter: number | string } | { gutterX: number | string } | { gutterY: number | string }}`} |
+
+ The number of columns/offset/order on medium devices (<992px). + |
+ ||
sm# | +- | +{`{{ cols: 'auto' | number | string } | { gutter: number | string } | { gutterX: number | string } | { gutterY: number | string }}`} |
+
+ The number of columns/offset/order on small devices (<768px). + |
+ ||
xl# | +- | +{`{{ cols: 'auto' | number | string } | { gutter: number | string } | { gutterX: number | string } | { gutterY: number | string }}`} |
+
+ The number of columns/offset/order on X-Large devices (<1400px). + |
+ ||
xs# | +- | +{`{{ cols: 'auto' | number | string } | { gutter: number | string } | { gutterX: number | string } | { gutterY: number | string }}`} |
+
+ The number of columns/offset/order on extra small devices (<576px). + |
+ ||
xxl# | +- | +{`{{ cols: 'auto' | number | string } | { gutter: number | string } | { gutterX: number | string } | { gutterY: number | string }}`} |
+
+ The number of columns/offset/order on XX-Large devices (≥1400px). + |
+
Property | +Default | +Type | +
---|---|---|
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'div')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
colorScheme# | +- | +{`'dark'`} , {`'light'`} |
+
+ Sets if the color of text should be colored for a light or dark dark background. + |
+ ||
narrow# | +- | +{`boolean`} |
+
+ Make sidebar narrow. + |
+ ||
onHide# | +- | +{`() => void`} |
+
+ Callback fired when the component requests to be hidden. + |
+ ||
onShow# | +- | +{`() => void`} |
+
+ Callback fired when the component requests to be shown. + |
+ ||
onVisibleChange# | +- | +{`(visible: boolean) => void`} |
+
+ Event emitted after visibility of component changed. + |
+ ||
overlaid# | +- | +{`boolean`} |
+
+ Set sidebar to overlaid variant. + |
+ ||
placement# | +- | +{`'start'`} , {`'end'`} |
+
+ Components placement, there’s no default placement. + |
+ ||
position# | +- | +{`'fixed'`} , {`'sticky'`} |
+
+ Place sidebar in non-static positions. + |
+ ||
size# | +- | +{`'sm'`} , {`'lg'`} , {`'xl'`} |
+
+ Size the component small, large, or extra large. + |
+ ||
unfoldable# | +- | +{`boolean`} |
+
+ Expand narrowed sidebar on hover. + |
+ ||
visible# | +- | +{`boolean`} |
+
+ Toggle the visibility of sidebar component. + |
+
Property | +Default | +Type | +
---|---|---|
as#5.0.0+ | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'a')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+
Property | +Default | +Type | +
---|---|---|
as#5.0.0+ | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'ul')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+
Property | +Default | +Type | +
---|---|---|
as# | +- | +{`(ElementType & 'symbol')`} , {`(ElementType & 'object')`} , {`(ElementType & 'div')`} , {`(ElementType & 'slot')`} , {`(ElementType & 'style')`} , {`... 174 more ...`} , {`(ElementType & FunctionComponent\<...>)`} |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
color# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+ ||
size# | +- | +{`'sm'`} |
+
+ Size the component small. + |
+ ||
variant# | +{`border`} |
+ {`'border'`} , {`'grow'`} |
+
+ Set the button variant to an outlined button or a ghost button. + |
+ ||
visuallyHiddenLabel# | +{`Loading...`} |
+ {`string`} |
+
+ Set visually hidden label for accessibility purposes. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
disabled# | +- | +{`boolean`} |
+
+ Toggle the disabled state for the component. + |
+ ||
itemKey# | +- | +{`string`} , {`number`} |
+
+ Item key. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
layout# | +- | +{`'fill'`} , {`'justified'`} |
+
+ Specify a layout type for component. + |
+ ||
variant# | +- | +{`'pills'`} , {`'tabs'`} , {`'underline'`} , {`'underline-border'`} |
+
+ Set the nav variant to tabs or pills. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
onHide# | +- | +{`() => void`} |
+
+ Callback fired when the component requests to be hidden. + |
+ ||
onShow# | +- | +{`() => void`} |
+
+ Callback fired when the component requests to be shown. + |
+ ||
transition#5.1.0+ | +{`true`} |
+ {`boolean`} |
+
+ Enable fade in and fade out transition. + |
+ ||
visible# | +- | +{`boolean`} |
+
+ Toggle the visibility of component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
itemKey# | +- | +{`string`} , {`number`} |
+
+ Item key. + |
+ ||
onHide# | +- | +{`() => void`} |
+
+ Callback fired when the component requests to be hidden. + |
+ ||
onShow# | +- | +{`() => void`} |
+
+ Callback fired when the component requests to be shown. + |
+ ||
transition# | +{`true`} |
+ {`boolean`} |
+
+ Enable fade in and fade out transition. + |
+ ||
visible# | +- | +{`boolean`} |
+
+ Toggle the visibility of component. + |
+
Property | +Default | +Type | +
---|---|---|
align# | +- | +{`string`} |
+
+ Set the vertical aligment. + |
+ ||
borderColor# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the border color of the component to one of CoreUI’s themed colors. + |
+ ||
bordered# | +- | +{`boolean`} |
+
+ Add borders on all sides of the table and cells. + |
+ ||
borderless# | +- | +{`boolean`} |
+
+ Remove borders on all sides of the table and cells. + |
+ ||
caption# | +- | +{`string`} |
+
+ Put the caption on the top if you set |
+ ||
captionTop#4.3.0+ | +- | +{`string`} |
+
+ Set the text of the table caption and the caption on the top of the table. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
color# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+ ||
columns#4.3.0+ | +- | +{`(string | Column)[]`} |
+
+ Prop for table columns configuration. If prop is not defined, table will display columns based on the first item keys, omitting keys that begins with underscore (e.g. '_props') +In columns prop each array item represents one column. Item might be specified in two ways:
|
+ ||
footer#4.3.0+ | +- | +{`(string | FooterItem)[]`} |
+
+ Array of objects or strings, where each element represents one cell in the table footer. +Example items: |
+ ||
hover# | +- | +{`boolean`} |
+
+ Enable a hover state on table rows within a |
+ ||
items#4.3.0+ | +- | +{`Item[]`} |
+
+ Array of objects, where each object represents one item - row in table. Additionally, you can add style classes to each row by passing them by 'props' key and to single cell by 'cellProps'. +Example item: |
+ ||
responsive# | +- | +{`boolean`} , {`'sm'`} , {`'md'`} , {`'lg'`} , {`'xl'`} , {`'xxl'`} |
+
+ Make any table responsive across all viewports or pick a maximum breakpoint with which to have a responsive table up to. + |
+ ||
small# | +- | +{`boolean`} |
+
+ Make table more compact by cutting all cell |
+ ||
striped# | +- | +{`boolean`} |
+
+ Add zebra-striping to any table row within the |
+ ||
stripedColumns#4.3.0+ | +- | +{`boolean`} |
+
+ Add zebra-striping to any table column. + |
+ ||
tableFootProps#4.3.0+ | +- | +{`CTableFootProps`} |
+
+ Properties that will be passed to the table footer component. + |
+ ||
tableHeadProps#4.3.0+ | +- | +{`CTableHeadProps`} |
+
+ Properties that will be passed to the table head component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
color# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+
Property | +Default | +Type | +
---|---|---|
active# | +- | +{`boolean`} |
+
+ Highlight a table row or cell. + |
+ ||
align# | +- | +{`string`} |
+
+ Set the vertical aligment. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
color# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
color# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
color# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
color# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+
Property | +Default | +Type | +
---|---|---|
responsive# | +- | +{`boolean`} , {`'sm'`} , {`'md'`} , {`'lg'`} , {`'xl'`} , {`'xxl'`} |
+
+ Make any table responsive across all viewports or pick a maximum breakpoint with which to have a responsive table up to. + |
+
Property | +Default | +Type | +
---|---|---|
active# | +- | +{`boolean`} |
+
+ Highlight a table row or cell.. + |
+ ||
align# | +- | +{`string`} |
+
+ Set the vertical aligment. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the component. + |
+ ||
color# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+
Property | +Default | +Type | +
---|---|---|
activeItemKey# | +- | +{`string`} , {`number`} |
+
+ Controls the currently active tab. +When provided, the component operates in a controlled mode. |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
defaultActiveItemKey# | +- | +{`string`} , {`number`} |
+
+ Sets the initially active tab when the component mounts. +After initialization, the component manages active tab changes internally. +Use |
+ ||
onChange# | +- | +{`(value: string | number) => void`} |
+
+ Callback fired when the active tab changes. +
|
+
Property | +Default | +Type | +
---|---|---|
animation# | +{`true`} |
+ {`boolean`} |
+
+ Apply a CSS fade transition to the toast. + |
+ ||
autohide# | +{`true`} |
+ {`boolean`} |
+
+ Auto hide the toast. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
color# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+ ||
delay# | +{`5000`} |
+ {`number`} |
+
+ Delay hiding the toast (ms). + |
+ ||
onClose# | +- | +{`(index: number) => void`} |
+
+ Callback fired when the component requests to be closed. + |
+ ||
onShow# | +- | +{`(index: number) => void`} |
+
+ Callback fired when the component requests to be shown. + |
+ ||
visible# | +{`false`} |
+ {`boolean`} |
+
+ Toggle the visibility of component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+
Property | +Default | +Type | +
---|---|---|
active# | +- | +{`boolean`} |
+
+ Toggle the active state for the component. + |
+ ||
as# | +- | +{`(ElementType & string)`} , {`(ElementType & ComponentClass\ , {`(ElementType & FunctionComponent\ |
+
+ Component used for the root node. Either a string to use a HTML element or a component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
dark# | +- | +{`boolean`} |
+
+ Invert the default color. + |
+ ||
disabled# | +- | +{`boolean`} |
+
+ Toggle the disabled state for the component. + |
+ ||
href# | +- | +{`string`} |
+
+ The href attribute specifies the URL of the page the link goes to. + |
+ ||
shape# | +- | +{`'rounded'`} , {`'rounded-top'`} , {`'rounded-end'`} , {`'rounded-bottom'`} , {`'rounded-start'`} , {`'rounded-circle'`} , {`'rounded-pill'`} , {`'rounded-0'`} , {`'rounded-1'`} , {`'rounded-2'`} , {`'rounded-3'`} , {`string`} |
+
+ Select the shape of the component. + |
+ ||
size# | +- | +{`'sm'`} , {`'lg'`} |
+
+ Size the component small or large. + |
+ ||
type# | +- | +{`'button'`} , {`'submit'`} , {`'reset'`} |
+
+ Specifies the type of button. Always specify the type attribute for the |
+ ||
variant# | +- | +{`'outline'`} , {`'ghost'`} |
+
+ Set the button variant to an outlined button or a ghost button. + |
+ ||
white#Deprecated 5.0.0 | +- | +{`boolean`} |
+
+ Change the default color to white. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
closeButton# | +- | +{`boolean`} |
+
+ Automatically add a close button to the header. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
placement# | +- | +{`'top-start'`} , {`'top'`} , {`'top-end'`} , {`'middle-start'`} , {`'middle'`} , {`'middle-end'`} , {`'bottom-start'`} , {`'bottom'`} , {`'bottom-end'`} , {`string`} |
+
+ Describes the placement of your component. + |
+ ||
push# | +- | +{`ReactElement`} |
+
+ Adds new |
+
Property | +Default | +Type | +
---|---|---|
animation#4.9.0+ | +{`true`} |
+ {`boolean`} |
+
+ Enables or disables the CSS fade transition for the React Tooltip. + |
+ ||
className# | +- | +{`string`} |
+
+ Adds a custom class name to the React Tooltip container. Useful for overriding default styles or applying additional design choices. + |
+ ||
container#4.11.0+ | +{`document.body`} |
+ {`Element`} , {`DocumentFragment`} , {`(() => Element | DocumentFragment)`} |
+
+ Appends the React Tooltip to a specific element instead of the default
|
+ ||
content# | +- | +{`ReactNode`} |
+
+ Content to be displayed within the React Tooltip. Can be a string or any valid React node. + |
+ ||
delay#4.9.0+ | +{`0`} |
+ {`number`} , {`{ show: number; hide: number; }`} |
+
+ The delay (in milliseconds) before showing or hiding the React Tooltip. +
|
+ ||
fallbackPlacements#4.9.0+ | +{`['top', 'right', 'bottom', 'left']`} |
+ {`'top', 'right', 'bottom', 'left'`} , {`('top', 'right', 'bottom', 'left')[]`} |
+
+ Array of fallback placements for the React Tooltip to use when the preferred placement cannot be achieved. These placements are tried in order. + |
+ ||
offset# | +{`[0, 6]`} |
+ {`[number, number]`} |
+
+ Adjusts the offset of the React Tooltip relative to its target. Expects a tuple |
+ ||
onHide# | +- | +{`() => void`} |
+
+ Callback fired immediately after the React Tooltip is hidden. + |
+ ||
onShow# | +- | +{`() => void`} |
+
+ Callback fired immediately after the React Tooltip is shown. + |
+ ||
placement# | +{`top`} |
+ {`'auto'`} , {`'top'`} , {`'bottom'`} , {`'right'`} , {`'left'`} |
+
+ Initial placement of the React Tooltip. Note that Popper.js modifiers may alter this placement automatically if there's insufficient space in the chosen position. + |
+ ||
popperConfig#5.5.0+ | +- | +{`Partial\ , {`((defaultPopperConfig: Partial\ |
+
+ Customize the Popper.js configuration used to position the React Tooltip. Pass either an object or a function returning a modified config. Learn more + |
+ ||
trigger# | +{`['hover', 'focus']`} |
+ {`'hover'`} , {`'focus'`} , {`'click'`} , {`('hover' | 'focus' | 'click')[]`} |
+
+ Determines the events that toggle the visibility of the React Tooltip. Can be a single trigger or an array of triggers. + |
+ ||
visible# | +- | +{`boolean`} |
+
+ Controls the visibility of the React Tooltip. +
|
+
Property | +Default | +Type | +
---|---|---|
action# | +- | +{`ReactNode`} |
+
+ Action node for your component. + |
+ ||
chart# | +- | +{`ReactNode`} |
+
+ Chart node for your component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
color# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+ ||
title# | +- | +{`ReactNode`} |
+
+ Title node for your component. + |
+ ||
value# | +- | +{`ReactNode`} |
+
+ Value node for your component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
color# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+ ||
inverse# | +- | +{`boolean`} |
+
+ Colors have been inverted from their default dark shade. + |
+ ||
progress# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the progress bar to one of CoreUI’s themed colors. + |
+ ||
text# | +- | +{`string`} |
+
+ Helper text for your component. + |
+ ||
title# | +- | +{`ReactNode`} |
+
+ Title node for your component. + |
+ ||
value# | +- | +{`ReactNode`} |
+
+ Value node for your component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
color# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+ ||
icon# | +- | +{`ReactNode`} |
+
+ Icon node for your component. + |
+ ||
inverse# | +- | +{`boolean`} |
+
+ Colors have been inverted from their default dark shade. + |
+ ||
progress# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the progress bar to one of CoreUI’s themed colors. + |
+ ||
title# | +- | +{`ReactNode`} |
+
+ Title node for your component. + |
+ ||
value# | +- | +{`ReactNode`} |
+
+ Value node for your component. + |
+
Property | +Default | +Type | +
---|---|---|
chart# | +- | +{`ReactNode`} |
+
+ Chart node for your component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
color# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+ ||
icon# | +- | +{`ReactNode`} |
+
+ Icon node for your component. + |
+ ||
values# | +- | +{`Value[]`} |
+
+ Values and titles for your component. + |
+
Property | +Default | +Type | +
---|---|---|
chart# | +- | +{`ReactNode`} |
+
+ Chart node for your component. + |
+ ||
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
title# | +- | +{`ReactNode`} |
+
+ Title node for your component. + |
+ ||
value# | +- | +{`ReactNode`} |
+
+ Value node for your component. + |
+
Property | +Default | +Type | +
---|---|---|
className# | +- | +{`string`} |
+
+ A string of all className you want applied to the base component. + |
+ ||
color# | +- | +{`'primary'`} , {`'secondary'`} , {`'success'`} , {`'danger'`} , {`'warning'`} , {`'info'`} , {`'dark'`} , {`'light'`} , {`string`} |
+
+ Sets the color context of the component to one of CoreUI’s themed colors. + |
+ ||
footer# | +- | +{`ReactNode`} |
+
+ Footer node for your component. + |
+ ||
icon# | +- | +{`ReactNode`} |
+
+ Icon node for your component. + |
+ ||
padding# | +{`true`} |
+ {`boolean`} |
+
+ Set padding of your component. + |
+ ||
title# | +- | +{`ReactNode`} |
+
+ Title node for your component. + |
+ ||
value# | +- | +{`ReactNode`} |
+
+ Value node for your component. + |
+
.accordion-body
, though the transition
- does limit overflow.
- .accordion-body
, though the transition
- does limit overflow.
- .accordion-body
, though the transition
- does limit overflow.
- .accordion-body
, though the transition
- does limit overflow.
- .accordion-body
, though the transition
- does limit overflow.
- .accordion-body
, though the transition
- does limit overflow.
- .accordion-body
, though the transition
- does limit overflow.
- .accordion-body
, though the transition
- does limit overflow.
- .accordion-body
, though the transition
- does limit overflow.
- Key | +Function | +
---|---|
Tab | +Moves focus to the next focusable element. | +
Shift + Tab | +Moves focus to the previous focusable element. | +
Space or Enter | +Toggle the expansion of the focused accordion header. | +
.accordion-body
, though the transition does limit overflow.
+ .accordion-body
, though the transition does limit overflow.
+ .accordion-body
, though the transition does limit overflow.
+ .accordion-body
, though the transition does limit overflow.
+ .accordion-body
, though the transition does limit overflow.
+ .accordion-body
, though the transition does limit overflow.
+ .accordion-body
, though the transition does limit overflow.
+ .accordion-body
, though the transition does limit overflow.
+ .accordion-body
, though the transition does limit overflow.
+ - Aww yeah, you successfully read this important alert message. This example text is going to run - a bit longer so that you can see how spacing within an alert works with this kind of content. -
-- Whenever you need to, be sure to use margin utilities to keep things nice and tidy. -
-+ Aww yeah, you successfully read this important alert message. This example text is going to + run a bit longer so that you can see how spacing within an alert works with this kind of + content. +
++ Whenever you need to, be sure to use margin utilities to keep things nice and tidy. +
+