UNPKG

@littlespoon/tag

Version:
34 lines (29 loc) 677 B
/** * Flowtype definitions for Tag * Generated by Flowgen from a Typescript Definition * Flowgen v1.21.0 * @flow */ import React from "react"; export type TagProps = { /** * Content to display the component. Defaults to "Tag". */ children?: React.ReactNode, /** * The size of the component. Defaults to "medium". */ size?: "small" | "medium" | "large", /** * Callback when the component is clicked. */ onClick?: () => void, /** * Callback when close button is clicked. */ onDelete?: () => void, ... } & React.HTMLAttributes<HTMLElement>; declare export default function Tag( props: TagProps ): React.ReactElement<TagProps>;