Movatterモバイル変換


[0]ホーム

URL:


Framework:


Hire UsGet CoreUI PRO all-access

React Loading Button Component

Loading Button

CoreUI PRO for React.js
This component is part of CoreUI PRO – a powerful UI library with over 250 components and 25+ templates, designed to help you build modern, responsive apps faster. Fully compatible with Angular, Bootstrap, React.js, and Vue.js.

React loading buttons are interactive elements that provide visual feedback to users, indicating that an action is being processed. These buttons typically display a loading spinner or animation.

Other Frameworks

CoreUI components are available as native Angular, Bootstrap (Vanilla JS), and Vue components. To learn more please visit the following pages.

Example#

Create basic React Loading Buttons with different styles: primary, outline, and ghost. These buttons show a loading state when clicked.

<CLoadingButtoncolor="primary"timeout={2000}>Submit</CLoadingButton>
<CLoadingButtoncolor="primary"variant="outline"timeout={2000}>Submit</CLoadingButton>
<CLoadingButtoncolor="primary"variant="ghost"timeout={2000}>Submit</CLoadingButton>

Spinners#

Border (Default)#

The default option. Use loading buttons with a border spinner to indicate loading status.

<CLoadingButtoncolor="info"timeout={2000}>Submit</CLoadingButton>
<CLoadingButtoncolor="success"variant="outline"timeout={2000}>Submit</CLoadingButton>
<CLoadingButtoncolor="warning"variant="ghost"timeout={2000}>Submit</CLoadingButton>

Grow#

Switch to a grow spinner for React loading buttons by addingspinnerType="grow".

<CLoadingButtoncolor="info"spinnerType="grow"timeout={2000}>Submit</CLoadingButton>
<CLoadingButtoncolor="success"spinnerType="grow"variant="outline"timeout={2000}>Submit</CLoadingButton>
<CLoadingButtoncolor="warning"spinnerType="grow"variant="ghost"timeout={2000}>Submit</CLoadingButton>

API#

Check out the documentation below for a comprehensive guide to all the props you can use with the components mentioned here.

CoreUI for React is Open Source UI Components Library for React.js.

CoreUI code licensedMIT, docsCC BY 3.0. CoreUI PRO requires acommercial license.


[8]ページ先頭

©2009-2025 Movatter.jp