Basic cards can display any content with no header or footer.
<ods-spinner></ods-spinner>
import { OdsSpinner } from '@ods/components/react.spinner' ;
< OdsSpinner ></ OdsSpinner >
Spinners are sized based on the current font size. To change their size, set the font-size property on the spinner itself or on a parent element as shown below.
<ods-spinner class = "spinner-size-example" ></ods-spinner>
import { OdsSpinner } from '@ods/components/react.spinner' ;
/* Only used for documentation */
< OdsSpinner className = "spinner-size-example" ></ OdsSpinner >
The width of the spinner’s track can be changed by setting the —track-width custom property.
<ods-spinner class = "spinner-track-example" ></ods-spinner>
import { OdsSpinner } from '@ods/components/react.spinner' ;
/* Only used for documentation */
< OdsSpinner className = "spinner-track-example" ></ OdsSpinner >
The spinner’s colors can be changed by setting the —indicator-color and —track-color custom properties.
<ods-spinner class = "spinner-color-example" ></ods-spinner>
font-size : var ( --ods-sys-font-size-3xl );
--indicator-color : var ( --ods-sys-color-status-danger );
--track-color : var ( --ods-sys-color-status-danger-muted );
import { OdsSpinner } from '@ods/components/react.spinner' ;
/* Only used for documentation */
font-size: var(--ods-sys-font-size-3xl);
--indicator-color: var(--ods-sys-color-status-danger);
--track-color: var(--ods-sys-color-status-danger-muted);
< OdsSpinner className = "spinner-color-example" ></ OdsSpinner >
import '@ods/components/web.spinner' ;
import { OdsSpinner } from '@ods/components/react.spinner' ;
Note: You only need to import a web component once in your code , as it registers itself globally when defined, allowing you to use it anywhere within your application without needing to re-import it each time you want to use the component.
import { OdsSpinner } from '@ods/components/react.spinner' ;
This component is still in development and cannot be imported at this time.
Parts Name Description base The component's base wrapper.