ds-smart-ui
Version:
Smart UI v1.0.5 — A production-ready React component library by PT Praisindo Teknologi. Covers inputs, navigation, data display, feedback, and layout with a unified design system, semantic Typography tokens, and full Storybook documentation.
29 lines (28 loc) • 1.47 kB
TypeScript
import { VariantProps } from 'class-variance-authority';
import { ButtonColorTypes, ButtonRoundedTypes, ButtonSizeTypes, ButtonVariantTypes } from '../../../types/button-types';
import * as React from "react";
declare const iconButtonVariants: (props?: ({
variant?: "link" | "transparent" | "text" | "dashed" | "contained" | "outlined" | "soft" | "soft-outlined" | null | undefined;
color?: "dark" | "light" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | null | undefined;
size?: "sm" | "md" | "lg" | null | undefined;
rounded?: "sm" | "md" | "lg" | "none" | "full" | null | undefined;
isIcon?: boolean | null | undefined;
fullWidth?: boolean | null | undefined;
pressed?: boolean | null | undefined;
disabled?: boolean | null | undefined;
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
export interface IconButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "disabled">, VariantProps<typeof iconButtonVariants> {
variant?: ButtonVariantTypes;
size?: ButtonSizeTypes;
children: React.ReactNode;
rounded?: ButtonRoundedTypes;
href?: string;
color?: ButtonColorTypes;
isLoading?: boolean;
disabled?: boolean;
pressed?: boolean;
id?: string;
[key: string]: any;
}
declare const IconButton: React.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
export default IconButton;