-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(avatar): updated examples, props, and slots tables
- Loading branch information
Showing
5 changed files
with
33 additions
and
82 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,22 +1,15 @@ | ||
import OriginalAvatar from './Avatar.svelte'; | ||
import Indicator from './Indicator.svelte'; | ||
import OriginalPlaceholder from './Placeholder.svelte'; | ||
import Icon from './Icon.svelte'; | ||
import Placeholder from './Placeholder.svelte'; | ||
|
||
const Avatar = OriginalAvatar as AvatarStatic; | ||
Avatar.Indicator = Indicator; | ||
Avatar.Placeholder = OriginalPlaceholder as PlaceholderStatic; | ||
Avatar.Placeholder.Icon = Icon; | ||
Avatar.Placeholder = Placeholder; | ||
|
||
export default Avatar; | ||
|
||
export interface AvatarStatic { | ||
new (...args: ConstructorParameters<typeof OriginalAvatar>): OriginalAvatar; | ||
Indicator: typeof Indicator; | ||
Placeholder: PlaceholderStatic; | ||
} | ||
|
||
export interface PlaceholderStatic { | ||
new (...args: ConstructorParameters<typeof OriginalPlaceholder>): OriginalPlaceholder; | ||
Icon: typeof Icon; | ||
Placeholder: typeof Placeholder; | ||
} |
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