mirror of
https://github.com/tabler/tabler.git
synced 2026-08-29 21:31:28 +04:00
23 lines
334 B
Plaintext
23 lines
334 B
Plaintext
---
|
|
// 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>
|