| action_icon |
component |
ts |
ui |
1.0.0 |
impure |
FnActionIcon(props: FnActionIconProps): JSX.Element |
Boton de icono con variantes, loading y tooltip opcional. Wrapper sobre Mantine ActionIcon. |
| mantine |
| button |
| icon |
| action |
| tooltip |
| component |
| ui |
|
|
|
|
false |
|
|
react |
| name |
type |
required |
description |
| icon |
ReactNode |
true |
Icono a renderizar dentro del boton |
|
| name |
type |
required |
description |
| variant |
'filled' | 'light' | 'outline' | 'transparent' | 'default' | 'subtle' |
false |
Variante visual del boton, default 'default' |
|
| name |
type |
required |
description |
| size |
MantineSize | number |
false |
Tamano del boton |
|
| name |
type |
required |
description |
| color |
MantineColor |
false |
Color del boton |
|
| name |
type |
required |
description |
| onClick |
MouseEventHandler |
false |
Callback al hacer click |
|
| name |
type |
required |
description |
| loading |
boolean |
false |
Muestra spinner de carga |
|
| name |
type |
required |
description |
| disabled |
boolean |
false |
Deshabilita el boton |
|
| name |
type |
required |
description |
| tooltip |
string |
false |
Si se provee, envuelve el boton en un Tooltip |
|
|
Boton de icono con tooltip opcional, estados loading/disabled y multiples variantes |
false |
|
|
frontend/functions/ui/action_icon.tsx |
|
false |
| filled |
| light |
| outline |
| transparent |
| default |
| subtle |
|