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

[Component]: <Spinner Component> #866

Closed
buseselvi opened this issue May 9, 2024 · 1 comment · Fixed by #877
Closed

[Component]: <Spinner Component> #866

buseselvi opened this issue May 9, 2024 · 1 comment · Fixed by #877
Assignees
Labels
enhancement New feature or request released

Comments

@buseselvi
Copy link
Contributor

buseselvi commented May 9, 2024

Figma Design Document

Spinner Design Document

Implementation

General usage example:

<bl-spinner></bl-spinner>

Rules

  • Spinner can be used to indicate loading states.
  • Custom sizes and colors can be applied using CSS variables or inline styles.
  • The spinner can be displayed in overlay mode to cover its parent element.

Usage Examples

Default size is var(--bl-font-size-m) and default color is var(--bl-color-primary). But any size and color can be set like this:

<bl-spinner size="32px" color="#FFF"></bl-spinner>

The color and size can be set like this:

<bl-spinner size="3rem" color="var(--bl-color-success)"></bl-spinner>

The disabled can be set like this:

<bl-spinner disabled></bl-spinner>

The overlay can be set like this:

<bl-spinner overlay size="var(--bl-font-size-l)" color="var(--bl-color-secondary)"></bl-spinner>

API Reference

Attributes

Attribute Description Default Value
size Size of the spinner (e.g., 3rem, 32px, var(--bl-font-size-m)) var(--bl-font-size-m)
color Color of the spinner var(--bl-color-primary)
disabled Whether the spinner is disabled false
overlay Whether the spinner is in overlay mode false
@buseselvi buseselvi added the enhancement New feature or request label May 9, 2024
@buseselvi buseselvi moved this from Selected to In Design in Baklava Design System May 9, 2024
@MertOzbudak MertOzbudak self-assigned this May 15, 2024
@buseselvi buseselvi moved this from In Design to ADR in Baklava Design System May 16, 2024
buseselvi pushed a commit that referenced this issue Jun 27, 2024
@github-project-automation github-project-automation bot moved this from ADR to Done in Baklava Design System Jun 27, 2024
Copy link

🎉 This issue has been resolved in version 3.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants