@kwiz/fluentui
Version:
KWIZ common controls for FluentUI
23 lines (22 loc) • 867 B
TypeScript
import { TagAppearance, TagShape, TagSize } from '@fluentui/react-components';
import * as React from 'react';
interface iProps {
shape?: TagShape;
size?: TagSize;
appearance?: TagAppearance;
disabled?: boolean;
/** primary text */
text: string | JSX.Element;
icon?: JSX.Element;
media?: JSX.Element;
secondaryText?: string;
action?: React.MouseEventHandler<HTMLButtonElement>;
/** this is only called if a main action also provided. otherwise, it will render a non-clickable tag and dismiss will be handled by a tag group */
secondaryAction?: React.MouseEventHandler<HTMLButtonElement>;
value?: string;
title?: string;
/** control appearance based on selection mode */
selected?: true | false | "none";
}
export declare const TagEx: React.FunctionComponent<React.PropsWithChildren<iProps>>;
export {};