Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Spinners (Bootstrap 4.2) #1347

Closed
TheSharpieOne opened this issue Jan 2, 2019 · 1 comment
Closed

Add support for Spinners (Bootstrap 4.2) #1347

TheSharpieOne opened this issue Jan 2, 2019 · 1 comment

Comments

@TheSharpieOne
Copy link
Member

https://getbootstrap.com/docs/4.2/components/spinners/

Probably something like:

<Spinner type="grow" size="sm" color="primary">Loading...</Spinner>

would become:

<div class="spinner-grow spinner-grow-sm text-primary" role="status">
  <span class="sr-only">Loading...</span>
</div>

basically (but with how reactstrap builds the className and all):

<div role="status" {...restProps} class="{className} spinner-{type} spinner-{type}-{size} text-{color}">
  {children && <span class="sr-only">{children}</span>}
</div>
@mjdavidson
Copy link
Contributor

Can I do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants