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

feat(theme): added new styles for component Skeleton #305

Merged
merged 2 commits into from
May 20, 2024
Merged

Conversation

gerzon05
Copy link
Collaborator

@gerzon05 gerzon05 commented May 20, 2024

Styles for component Skeleton

Introduction

In this PR add new feature for component Skeleton, it is about styles:

Details

Added new variants like:

  • rounded

Api refernece

 const variants = {
   rounded: {
      none: 'rounded-none',
      sm: 'rounded-sm',
      md: 'rounded-md',
      lg: 'rounded-lg',
      full: 'rounded-full',
   }
}

new animation

const animations = {
  animation: {
    'pulse-infinite': 'pulse-infinite 2s cubic-bezier(0.4, 0, 0.6, 1) infinite',
  },
  keyframes: {
    'pulse-infinite': {
      '0%': {
        opacity: 1,
      },
      '50%': {
        opacity: 0.5,
      },
      '100%': {
        opacity: 1,
      },
    },
  },
}

Related problems

Resolves #250

Preview

By default, for rounded the variant is full and icons is none

mode light

Create.Next.App.y.14.paginas.mas.-.Personal_.Microsoft.Edge.2024-05-19.22-26-31.mp4

mode dark

Create.Next.App.y.14.paginas.mas.-.Personal_.Microsoft.Edge.2024-05-19.22-25-06.mp4

How to use

import { Skeleton} from '@openui-org/react'

function SkeletonExample() {
return <Skeleton/>
}

@gerzon05 gerzon05 added react This label for the package of react feat New feature or request theme This label for the package theme labels May 20, 2024
@gerzon05 gerzon05 added this to the v2.0.0 milestone May 20, 2024
@gerzon05 gerzon05 enabled auto-merge (squash) May 20, 2024 03:59
@gerzon05 gerzon05 merged commit 915df38 into main May 20, 2024
3 checks passed
@gerzon05 gerzon05 deleted the skeleton branch May 20, 2024 13:55
@sebastiandotdev
Copy link
Collaborator

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request react This label for the package of react theme This label for the package theme
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add new style component Skeleton
2 participants