@undp/design-system-react
Version:
React based design system for UNDP
64 lines (42 loc) • 1.66 kB
TypeScript
import { ClassProp } from 'class-variance-authority/types';
import { JSX } from 'react/jsx-runtime';
import type * as React_2 from 'react';
import { VariantProps } from 'class-variance-authority';
export declare function Button({ className, variant, size, arrow, rounded, padding, asChild, ...props }: React_2.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
asChild?: boolean;
}): JSX.Element;
export declare const buttonVariants: (props?: ({
variant?: "link" | "error" | "warning" | "success" | "info" | "primary" | "secondary" | "tertiary" | "quaternary" | "surface" | "outline" | "icon" | "surface-hard" | "background" | "background-soft" | "foreground" | "foreground-soft" | null | undefined;
arrow?: boolean | null | undefined;
size?: "base" | "xs" | "sm" | "xl" | null | undefined;
rounded?: "base" | "sm" | "md" | "lg" | "xl" | "2xl" | "full" | null | undefined;
padding?: "base" | "sm" | "none" | null | undefined;
} & ClassProp) | undefined) => string;
export { }
declare namespace BreadcrumbSeparator {
var displayName: string;
}
declare namespace BreadcrumbEllipsis {
var displayName: string;
}
declare namespace DialogHeader {
var displayName: string;
}
declare namespace DialogFooter {
var displayName: string;
}
declare namespace PaginationUnit {
var displayName: string;
}
declare namespace PaginationLink {
var displayName: string;
}
declare namespace PaginationPrevious {
var displayName: string;
}
declare namespace PaginationNext {
var displayName: string;
}
declare namespace PaginationEllipsis {
var displayName: string;
}