Skip to main content
Version: v6

ion-progress-bar

shadow

Progress bars inform users about the status of ongoing processes, such as loading an app, submitting a form, or saving updates. There are two types of progress bars: determinate and indeterminate.

Determinate

Determinate is the default type. It should be used when the percentage of an operation is known. The progress is represented by setting the value property. This can be used to show the progress increasing from 0 to 100% of the track.

Buffer

If the buffer property is set, a buffer stream will show with animated circles to indicate activity. The value of the buffer property will also be represented by how much visible track there is. If the value of buffer is less than the value property, there will be no visible track. If buffer is equal to 1 then the buffer stream will be hidden.

Indeterminate

The indeterminate type should be used when it is unknown how long the process will take. The progress bar is not tied to the value, instead it continually slides along the track until the process is complete.

Progress Bars in Toolbars

Theming

Colors

CSS Custom Properties

CSS Shadow Parts

Properties

buffer

Descriptionバッファと値が1より小さい場合、バッファの円が表示されます。バッファは[0, 1]の間である必要があります。
Attributebuffer
Typenumber
Default1

color

Descriptionアプリケーションのカラーパレットから使用する色を指定します。デフォルトのオプションは以下の通りです。 "primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", と "dark" です.色に関する詳しい情報は theming を参照してください。
Attributecolor
Type"danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string & Record<never, never> | undefined
Defaultundefined

mode

Descriptionmodeは、どのプラットフォームのスタイルを使用するかを決定します。
Attributemode
Type"ios" | "md"
Defaultundefined

reversed

Descriptiontrue の場合、プログレスバーの方向を反転させます。
Attributereversed
Typeboolean
Defaultfalse

type

Description処理にかかる時間が既知か否かに応じて、プログレスバーの状態を指定します。デフォルトのオプションは以下の通り。determinate"(アニメーションなし),"indeterminate"` (左から右へアニメーションする).
Attributetype
Type"determinate" | "indeterminate"
Default'determinate'

value

Descriptionこの値は、type"determinate"である場合に、アクティブバーをどれだけ表示するかを決定するものです。値は [0, 1] の間であるべきです。
Attributevalue
Typenumber
Default0

Events

No events available for this component.

Methods

No public methods available for this component.

CSS Shadow Parts

NameDescription
progresstype"determinate"のときは現在値を表示し、type"indeterminate"`のときは前後にスライドするプログレスバーです。
streamバッファリング中に表示されるアニメーションの円です。これは buffer が設定され、type"determinate" のときのみ表示される。
trackプログレスバーの後ろにあるトラックバーです。bufferプロパティが設定され、type"determinate"である場合、トラックはbuffer` 値の幅となる。

CSS Custom Properties

NameDescription
--backgroundプログレストラックの背景、または buffer が設定されている場合はバッファバー。
--buffer-backgroundDEPRECATED、代わりに --background を使用します。
--progress-background現在値を表すプログレスバーの背景

Slots

No slots available for this component.