diff --git a/packages/docs/src/content/docs/components/examples/FooterExample.tsx b/packages/docs/src/content/docs/components/examples/FooterExample.tsx new file mode 100644 index 00000000..aace8ecb --- /dev/null +++ b/packages/docs/src/content/docs/components/examples/FooterExample.tsx @@ -0,0 +1,14 @@ +import { CFooter, CLink } from '@coreui/react' + +export const FooterExample = () => ( + +
+ CoreUI + © 2026 creativeLabs. +
+
+ Powered by + CoreUI +
+
+) diff --git a/packages/docs/src/content/docs/components/examples/IconCssVariablesExample.tsx b/packages/docs/src/content/docs/components/examples/IconCssVariablesExample.tsx new file mode 100644 index 00000000..e5e927e6 --- /dev/null +++ b/packages/docs/src/content/docs/components/examples/IconCssVariablesExample.tsx @@ -0,0 +1,10 @@ +import type { CSSProperties } from 'react' +import { CIcon } from '@coreui/icons-react/src/index' +import { cilList } from '@coreui/icons' + +export const IconCssVariablesExample = () => ( + <> + + + +) diff --git a/packages/docs/src/content/docs/components/examples/IconSizingExample.tsx b/packages/docs/src/content/docs/components/examples/IconSizingExample.tsx new file mode 100644 index 00000000..2f0b2c4b --- /dev/null +++ b/packages/docs/src/content/docs/components/examples/IconSizingExample.tsx @@ -0,0 +1,13 @@ +import { CIcon } from '@coreui/icons-react/src/index' +import { cilList } from '@coreui/icons' + +export const IconSizingExample = () => ( + <> + + + + + + + +) diff --git a/packages/docs/src/content/docs/components/examples/IconUtilityClassesExample.tsx b/packages/docs/src/content/docs/components/examples/IconUtilityClassesExample.tsx new file mode 100644 index 00000000..86ecff08 --- /dev/null +++ b/packages/docs/src/content/docs/components/examples/IconUtilityClassesExample.tsx @@ -0,0 +1,14 @@ +import { CIcon } from '@coreui/icons-react/src/index' +import { cilList } from '@coreui/icons' + +export const IconUtilityClassesExample = () => ( + <> + + + + + + + + +) diff --git a/packages/docs/src/content/docs/components/footer.mdx b/packages/docs/src/content/docs/components/footer.mdx index 25818374..a7a44ba6 100644 --- a/packages/docs/src/content/docs/components/footer.mdx +++ b/packages/docs/src/content/docs/components/footer.mdx @@ -8,20 +8,14 @@ otherFrameworks: import CFooterData from '@api/CFooter.api.json' +import { FooterExample } from './examples/FooterExample' +import FooterExampleRaw from './examples/FooterExample.tsx?raw' + ## Example -```jsx preview demo - -
- CoreUI - © 2026 creativeLabs. -
-
- Powered by - CoreUI -
-
-``` + + + ## Customizing diff --git a/packages/docs/src/content/docs/components/icon.mdx b/packages/docs/src/content/docs/components/icon.mdx index fdd5f4a9..2ca8127a 100644 --- a/packages/docs/src/content/docs/components/icon.mdx +++ b/packages/docs/src/content/docs/components/icon.mdx @@ -19,10 +19,12 @@ import { IconDemo0 } from './examples/IconDemo0' import IconDemo0Raw from './examples/IconDemo0.tsx?raw' import { IconDemo1 } from './examples/IconDemo1' import IconDemo1Raw from './examples/IconDemo1.tsx?raw' - -import {CIcon, CIconSvg} from '@coreui/icons-react/src/index' -import { cilList, cilShieldAlt } from '@coreui/icons' -import * as icon from '@coreui/icons'; +import { IconUtilityClassesExample } from './examples/IconUtilityClassesExample' +import IconUtilityClassesExampleRaw from './examples/IconUtilityClassesExample.tsx?raw' +import { IconCssVariablesExample } from './examples/IconCssVariablesExample' +import IconCssVariablesExampleRaw from './examples/IconCssVariablesExample.tsx?raw' +import { IconSizingExample } from './examples/IconSizingExample' +import IconSizingExampleRaw from './examples/IconSizingExample.tsx?raw' ## Installation @@ -87,37 +89,25 @@ The CoreUI React Icon component offers versatile color customization options, em With some [color utility classes](https://coreui.io/bootstrap/docs/utilities/colors/), you may use color to convey message. -```jsx preview - - - - - - - -``` + + + #### CSS Variables CoreUI React Icons leverage local CSS variables, such as `--ci-primary-color` and `--ci-secondary-color` (for Duotone icons), to facilitate real-time customization. This allows developers to easily customize the icons by providing their own custom CSS variables. -```jsx preview - - -``` + + + ### Sizing Set heights of React icons using size property like size="lg" and size="sm". -```jsx preview - - - - - - -``` + + + ### Custom SVG Icons diff --git a/packages/docs/src/content/docs/forms/checks-radios.mdx b/packages/docs/src/content/docs/forms/checks-radios.mdx index 9ec4fbfb..28e1cc1e 100644 --- a/packages/docs/src/content/docs/forms/checks-radios.mdx +++ b/packages/docs/src/content/docs/forms/checks-radios.mdx @@ -7,112 +7,126 @@ description: "Create consistent cross-browser and cross-device checkboxes and ra import CFormCheckData from '@api/CFormCheck.api.json' import CFormSwitchData from '@api/CFormSwitch.api.json' +import { ChecksRadiosChecksExample } from './examples/ChecksRadiosChecksExample' +import ChecksRadiosChecksExampleRaw from './examples/ChecksRadiosChecksExample.tsx?raw' +import { ChecksRadiosIndeterminateExample } from './examples/ChecksRadiosIndeterminateExample' +import ChecksRadiosIndeterminateExampleRaw from './examples/ChecksRadiosIndeterminateExample.tsx?raw' +import { ChecksRadiosDisabledExample } from './examples/ChecksRadiosDisabledExample' +import ChecksRadiosDisabledExampleRaw from './examples/ChecksRadiosDisabledExample.tsx?raw' +import { ChecksRadiosRadiosExample } from './examples/ChecksRadiosRadiosExample' +import ChecksRadiosRadiosExampleRaw from './examples/ChecksRadiosRadiosExample.tsx?raw' +import { ChecksRadiosRadiosDisabledExample } from './examples/ChecksRadiosRadiosDisabledExample' +import ChecksRadiosRadiosDisabledExampleRaw from './examples/ChecksRadiosRadiosDisabledExample.tsx?raw' +import { ChecksRadiosSwitchesExample } from './examples/ChecksRadiosSwitchesExample' +import ChecksRadiosSwitchesExampleRaw from './examples/ChecksRadiosSwitchesExample.tsx?raw' +import { ChecksRadiosSwitchSizesExample } from './examples/ChecksRadiosSwitchSizesExample' +import ChecksRadiosSwitchSizesExampleRaw from './examples/ChecksRadiosSwitchSizesExample.tsx?raw' +import { ChecksRadiosStackedExample } from './examples/ChecksRadiosStackedExample' +import ChecksRadiosStackedExampleRaw from './examples/ChecksRadiosStackedExample.tsx?raw' +import { ChecksRadiosStackedRadiosExample } from './examples/ChecksRadiosStackedRadiosExample' +import ChecksRadiosStackedRadiosExampleRaw from './examples/ChecksRadiosStackedRadiosExample.tsx?raw' +import { ChecksRadiosInlineExample } from './examples/ChecksRadiosInlineExample' +import ChecksRadiosInlineExampleRaw from './examples/ChecksRadiosInlineExample.tsx?raw' +import { ChecksRadiosInlineRadiosExample } from './examples/ChecksRadiosInlineRadiosExample' +import ChecksRadiosInlineRadiosExampleRaw from './examples/ChecksRadiosInlineRadiosExample.tsx?raw' +import { ChecksRadiosWithoutLabelsExample } from './examples/ChecksRadiosWithoutLabelsExample' +import ChecksRadiosWithoutLabelsExampleRaw from './examples/ChecksRadiosWithoutLabelsExample.tsx?raw' +import { ChecksRadiosCheckboxToggleButtonsExample } from './examples/ChecksRadiosCheckboxToggleButtonsExample' +import ChecksRadiosCheckboxToggleButtonsExampleRaw from './examples/ChecksRadiosCheckboxToggleButtonsExample.tsx?raw' +import { ChecksRadiosCheckboxToggleButtonsCheckedExample } from './examples/ChecksRadiosCheckboxToggleButtonsCheckedExample' +import ChecksRadiosCheckboxToggleButtonsCheckedExampleRaw from './examples/ChecksRadiosCheckboxToggleButtonsCheckedExample.tsx?raw' +import { ChecksRadiosCheckboxToggleButtonsDisabledExample } from './examples/ChecksRadiosCheckboxToggleButtonsDisabledExample' +import ChecksRadiosCheckboxToggleButtonsDisabledExampleRaw from './examples/ChecksRadiosCheckboxToggleButtonsDisabledExample.tsx?raw' +import { ChecksRadiosRadioToggleButtonsExample } from './examples/ChecksRadiosRadioToggleButtonsExample' +import ChecksRadiosRadioToggleButtonsExampleRaw from './examples/ChecksRadiosRadioToggleButtonsExample.tsx?raw' +import { ChecksRadiosOutlinedStylesExample } from './examples/ChecksRadiosOutlinedStylesExample' +import ChecksRadiosOutlinedStylesExampleRaw from './examples/ChecksRadiosOutlinedStylesExample.tsx?raw' + ## Approach Browser default checkboxes and radios are replaced with the help of ``. Checkboxes are for selecting one or several options in a list, while radios are for selecting one option from many. ## Checks -```jsx preview - - -``` + + + ## Indeterminate Checkboxes can utilize the `:indeterminate` pseudo-class when manually set via `indeterminate` property. -```jsx preview - -``` + + + ### Disabled Add the `disabled` attribute and the associated `