# Spinner (lv_spinner) (/widgets/spinner)



Overview [#overview]

The Spinner Widget is a spinning arc over a ring, typically used to show some type of
activity is in progress.

Parts and Styles [#parts-and-styles]

Spinner's parts are identical to those of [Arc](/widgets/arc).

Usage [#usage]

Create a spinner [#create-a-spinner]

To create a spinner use
<ApiLink name="lv_spinner_create" display="lv_spinner_create(parent)" />.

Use <ApiLink name="lv_spinner_set_anim_params" display="lv_spinner_set_anim_params(spinner, spin_duration, angle)" /> to
customize the duration of one revolution and the length of the arc.

Events [#events]

No special events are sent by Spinner Widgets.

<Callout type="info" title="Further Reading">
  Learn more about [Events](/common-widget-features/events) emitted by all Widgets.

  Learn more about [events](/common-widget-features/events).
</Callout>

Keys [#keys]

No *Keys* are processed by Spinner Widgets.

<Callout type="info" title="Further Reading">
  Learn more about [Keys](/main-modules/indev/keypad).
</Callout>

Example [#example]

Simple spinner [#simple-spinner]

<LvglExample name="lv_example_spinner_1" path="widgets/spinner/lv_example_spinner_1" />

API [#api]
