mirror of
https://github.com/tabler/tabler.git
synced 2026-10-12 05:06:55 +04:00
18 lines
568 B
Plaintext
18 lines
568 B
Plaintext
---
|
|
interface Props {
|
|
type?: 'border' | 'grow'
|
|
color?: string
|
|
/** core/scss/bootstrap/_spinners.scss `.spinner-{type}-{size}` — only 'sm' exists */
|
|
size?: 'sm' | undefined
|
|
class?: string
|
|
/** remaining attributes (id, data-*, aria-*, …) are forwarded to the root element */
|
|
[key: string]: unknown
|
|
}
|
|
|
|
const { type = 'border', color, size, class: className, ...rest } = Astro.props
|
|
|
|
const classes = [`spinner-${type}`, color && `text-${color}`, size && `spinner-${type}-${size}`, className]
|
|
---
|
|
|
|
<div class:list={classes} role="status" {...rest}></div>
|