2023-02-15 13:00:09 +01:00
|
|
|
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
|
|
|
import React from 'react';
|
2023-11-15 15:28:21 +01:00
|
|
|
import { IconAnimation } from '../components/LibIcon';
|
2023-02-15 13:00:09 +01:00
|
|
|
|
2024-03-09 11:04:18 +01:00
|
|
|
export type TextUiPosition = 'right-center' | 'left-center' | 'top-center' | 'bottom-center';
|
2023-02-15 13:00:09 +01:00
|
|
|
|
|
|
|
|
export interface TextUiProps {
|
|
|
|
|
text: string;
|
|
|
|
|
position?: TextUiPosition;
|
|
|
|
|
icon?: IconProp;
|
|
|
|
|
iconColor?: string;
|
2023-11-15 15:28:21 +01:00
|
|
|
iconAnimation?: IconAnimation;
|
2023-02-15 13:00:09 +01:00
|
|
|
style?: React.CSSProperties;
|
2023-11-15 14:30:33 +01:00
|
|
|
alignIcon?: 'top' | 'center';
|
2023-02-15 13:00:09 +01:00
|
|
|
}
|