5.2.3 • Published 7 months ago

@financial-times/o-loading v5.2.3

Weekly downloads
836
License
MIT
Repository
-
Last release
7 months ago

o-loading

This is an Origami component that provides a visual loading indicator.

Usage

Check out how to include Origami components in your project to get started with o-loading.

Markup

In order to display a loading indicator in your product, you will need to supply the theme and the size modifiers in your markup, e.g.:

<div class="o-loading o-loading--light o-loading--small"></div>

Sass

In order to output all of the variations in theme and size of o-loading, you'll need to include the following:

@import '@financial-times/o-loading/main';

@include oLoading();

You can also be more selective about which themes or sizes of the loading indicator you wish to output, by using a map. The $opts map accepts two lists:

'themes':

  • light
  • dark

And 'sizes':

  • mini
  • small
  • medium
  • large
@import '@financial-times/o-loading/main';

@include oLoading(
	$opts: (
		'themes': (
			'light',
		),
		'sizes': (
			'medium',
			'large',
		),
	)
);

// outputs a large light spinner and a medium light spinner

If you need to build a loading spinner into a component, for example, you can use the following mixin:

@import '@financial-times/o-loading/main';

.my-loading-spinner {
	@include oLoadingContent(
		$opts: (
			'theme': 'light',
			'size': 'small',
		)
	);
}

Migration guide

StateMajor VersionLast Minor ReleaseMigration guide
✨ active5N/Amigrate to v5
⚠ maintained44.0.4migrate to v4
╳ deprecated33.1migrate to v3
╳ deprecated22.3migrate to v2
╳ deprecated11.0N/A

Contact

If you have any questions or comments about this component, or need help using it, please either raise an issue, visit #origami-support or email Origami Support.

Licence

This software is published by the Financial Times under the MIT licence.

5.2.3

7 months ago

5.2.2

1 year ago

5.2.1

2 years ago

5.2.0

2 years ago

5.1.1

3 years ago

5.0.2

3 years ago

5.1.0

3 years ago

5.0.1

3 years ago

5.0.0

3 years ago

5.0.0-0

3 years ago

5.0.0-beta.0

3 years ago

4.0.4

4 years ago

4.0.3

4 years ago

4.0.2

4 years ago

4.0.1

4 years ago

4.0.0

5 years ago

4.0.0-beta.2

5 years ago

4.0.0-beta.1

5 years ago

3.1.2

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago