Skip to main content

Components Overview

@vef-framework-react/components is the UI component library for VEF Framework. It is built on top of Ant Design 6.x and extends it with additional layout primitives, permission-aware components, and form integration utilities.

Component Categories

Ant Design Pass-through

Most Ant Design components are re-exported directly from antd. You can use them exactly as documented on the Ant Design website, with the same props and APIs.

ComponentDescription
ButtonTrigger operations
InputText input field
SelectDropdown selector
TableData table (with VEF enhancements)
FormData entry form (replaced by useForm)
ModalDialog overlay
DatePickerDate / date-range picker
TimePickerTime / time-range picker
CheckboxCheckbox input
RadioRadio input
SwitchToggle switch
SliderSlider input
UploadFile upload
TreeTree view
TreeSelectTree-based selector
CascaderCascading selector
AutoCompleteAuto-complete input
MentionsMentions input
ColorPickerColor picker
RateStar rating
TransferTransfer list
AvatarUser avatar
BadgeStatus badge
TagLabel tag
TooltipHover tooltip
PopoverClick popover
PopconfirmConfirmation popover
DropdownDropdown menu
MenuNavigation menu
TabsTab navigation
CollapseCollapsible panel
CardContent card
ListData list
DescriptionsKey-value descriptions
StatisticNumeric statistic
ProgressProgress indicator
SpinLoading spinner
SkeletonLoading skeleton
AlertAlert message
ResultResult page
EmptyEmpty state
PaginationPagination control
StepsStep indicator
TimelineTimeline
BreadcrumbBreadcrumb navigation
AnchorAnchor links
AffixSticky element
DividerVisual divider
SpaceSpacing wrapper
FlexFlex layout
Row / ColGrid layout
SplitterResizable panels
DrawerSlide-in panel
FloatButtonFloating action button
ImageImage with preview
CalendarCalendar view
CarouselCarousel / slideshow
QRCodeQR code generator
WatermarkWatermark overlay
TourGuided tour
SegmentedSegmented control
InputNumberNumeric input
TypographyText / Title / Paragraph / Link
ConfigProviderGlobal config provider

VEF-specific Components

These components are unique to VEF Framework and are not part of Ant Design.

ComponentDescription
ActionButtonButton with built-in async loading and confirm dialog
ActionGroupRenders a group of action buttons from a config array
OperationButtonActionButton + PermissionGate combined
BoolBoolean value display/input with multiple variants
GridResponsive auto-fill grid with collapse support
StackVertical flex stack layout
CenterCentered flex layout
GroupHorizontal flex layout
ScrollAreaCustom scrollbar area with scroll event callbacks
LoaderFull-screen or inline loading indicator
PermissionGateConditionally renders children based on permissions
IconButtonIcon-only button with tooltip
DynamicIconRenders a Lucide icon by name string
IconRenders a Lucide icon component passed as a prop
ConfigProviderVEF global config provider with dark mode & theme
ChartECharts wrapper with theme and chart linking
CodeHighlighterSyntax-highlighted code block
KeyboardKeyboard shortcut display

Animation Components

ComponentDescription
FlipTextCharacter flip animation
SparklesTextText with sparkle particle effects
SplitTextGSAP-powered text split animation
TypingAnimationTypewriter effect animation

AI Components (X Series)

Built on @ant-design/x, re-exported with the X prefix. See the AI Components Overview for details.

ComponentDescription
XBubbleChat message bubble
XSenderMessage input with send button
XConversationsConversation list
XPromptsSuggested prompt list
XThoughtChainAI reasoning chain display
XWelcomeWelcome screen
XMarkdownMarkdown renderer with streaming
XMermaidMermaid diagram renderer
XCodeHighlighterCode block for AI responses

VEF replaces Ant Design's Form with a type-safe form system built on @tanstack/react-form. See the Form documentation for details.

Installation

pnpm add @vef-framework-react/components

Basic Usage

import { Button, Table, ActionButton } from '@vef-framework-react/components';

All components are tree-shakeable via named exports.