-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Skeleton): inline styles (#116)
* feat: inline styles for skeleton + showcase * docs: readme development * fix: skeleton nice wave z-index Co-authored-by: Leon Minasyan <[email protected]>
- Loading branch information
1 parent
095f425
commit bfbde83
Showing
4 changed files
with
27 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
import React from 'react'; | ||
import React, {HTMLAttributes} from 'react'; | ||
import {block} from '../utils/cn'; | ||
|
||
import './Skeleton.scss'; | ||
|
||
const b = block('skeleton'); | ||
|
||
export interface SkeletonProps { | ||
className?: string; | ||
} | ||
export interface SkeletonProps | ||
extends Pick<HTMLAttributes<HTMLDivElement>, 'className' | 'style'> {} | ||
|
||
export function Skeleton({className}: SkeletonProps) { | ||
return <div className={b(null, className)} />; | ||
export function Skeleton({className, style}: SkeletonProps) { | ||
return <div className={b(null, className)} style={style} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters