mirror of
https://github.com/tabler/tabler.git
synced 2026-08-29 21:31:28 +04:00
Restructure shared Astro sources and import aliases (#2737)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
---
|
||||
// Equivalent of ui/avatar-upload.html
|
||||
import Icon from './Icon.astro';
|
||||
|
||||
interface Props {
|
||||
class?: string;
|
||||
size?: string;
|
||||
}
|
||||
|
||||
const { class: className, size } = Astro.props;
|
||||
|
||||
const classes = [
|
||||
'avatar',
|
||||
'avatar-upload',
|
||||
className,
|
||||
size && `avatar-${size}`,
|
||||
]
|
||||
---
|
||||
|
||||
<a href="#" class:list={classes}>
|
||||
<Icon name="plus" />
|
||||
</a>
|
||||
Reference in New Issue
Block a user