#Component defaults
Use components on ConfigProvider to set shared default props. See component defaults for examples, naming rules and inheritance.
#LeafComponentDefaults
All entries are optional. Each entry accepts the props listed below or null to clear inherited defaults. Follow a linked props type for the meaning and built-in default of each prop. Required props, mode-dependent values, generic data and imperative refs remain on instances.
| Property | Type | Description |
|---|---|---|
Affix | Partial<Omit<AffixProps, 'key' | 'ref'>> | null | Configure affix. |
Alert | Partial<Omit<AlertProps, 'key' | 'ref' | 'title'>> | null | Configure alert. |
Anchor | Partial<Omit<AnchorProps, 'key' | 'ref' | 'items'>> | null | Configure anchor. |
AppBar | Partial<Omit<AppBarProps, 'key' | 'ref'>> | null | Configure app bar. |
AutoComplete | Partial<Omit<AutoCompleteProps, 'key' | 'ref' | 'options'>> | null | Configure auto complete. |
Avatar | Partial<Omit<AvatarProps, 'key' | 'ref'>> | null | Configure avatar. |
AvatarGroup | Partial<Omit<AvatarGroupProps, 'key' | 'ref'>> | null | Configure avatar group. |
BackTop | Partial<Omit<BackTopProps, 'key' | 'ref'>> | null | Configure back top. |
Badge | Partial<Omit<BadgeProps, 'key' | 'ref'>> | null | Configure badge. |
BottomNavigation | Partial<Omit<BottomNavigationProps, 'key' | 'ref' | 'items'>> | null | Configure bottom navigation. |
Breadcrumb | Partial<Omit<BreadcrumbProps, 'key' | 'ref' | 'items'>> | null | Configure breadcrumb. |
Button | Partial<Omit<ButtonProps, 'key' | 'ref'>> | null | Default button props. |
ButtonGroup | Partial<Omit<ButtonGroupProps, 'key' | 'ref'>> | null | Configure button group. |
Calendar | Partial<Omit<CalendarProps, 'key' | 'ref'>> | null | Configure calendar. |
Card | Partial<Omit<CardProps, 'key' | 'ref'>> | null | Configure card. |
CardTitle | Partial<Omit<CardTitleProps, 'key' | 'ref'>> | null | Configure card title. |
Carousel | Partial<Omit<CarouselProps, 'key' | 'ref'>> | null | Configure carousel. |
Cascader | Partial< Omit< CascaderProps, 'key' | 'ref' | 'options' | 'multiple' | 'value' | 'defaultValue' | 'onChange' > > | null | Configure cascader. |
CheckableTag | Partial<Omit<CheckableTagProps, 'key' | 'ref'>> | null | Configure checkable tag. |
Checkbox | Partial<Omit<CheckboxProps, 'key' | 'ref'>> | null | Configure checkbox. |
CheckboxGroup | Partial<Omit<CheckboxGroupProps, 'key' | 'ref' | 'options'>> | null | Configure checkbox group. |
Col | Partial<Omit<ColProps, 'key' | 'ref'>> | null | Configure col. |
Collapse | Partial<Omit<CollapseProps, 'key' | 'ref' | 'items'>> | null | Configure collapse. |
ColorPicker | Partial<Omit<ColorPickerProps, 'key' | 'ref'>> | null | Configure color picker. |
CommandPalette | Partial<Omit<CommandPaletteProps, 'key' | 'ref' | 'items'>> | null | Configure command palette. |
Confirm | Partial<Omit<ConfirmOptions, 'key' | 'ref'>> | null | Configure confirm. |
Countdown | Partial<Omit<CountdownProps, 'key' | 'ref' | 'value'>> | null | Configure countdown. |
DataTable | Partial<Omit<DataTablePresentationProps, 'tableRef'>> | null | Configure data table. |
DataTableColumnVisibility | Partial<Omit<DataTableColumnVisibilityProps, 'key' | 'ref'>> | null | Configure data table column visibility. |
DataTableContent | Partial<Omit<DataTableContentProps, 'key' | 'ref'>> | null | Configure data table content. |
DataTableFooter | Partial<Omit<HTMLAttributes<HTMLDivElement>, 'key' | 'ref'>> | null | Configure data table footer. |
DataTablePagination | Partial<Omit<DataTablePaginationProps, 'key' | 'ref'>> | null | Configure data table pagination. |
DataTableSearch | Partial<Omit<DataTableSearchProps, 'key' | 'ref'>> | null | Configure data table search. |
DataTableToolbar | Partial<Omit<HTMLAttributes<HTMLDivElement>, 'key' | 'ref'>> | null | Configure data table toolbar. |
DatePicker | Partial< Omit<DatePickerProps, 'key' | 'ref' | 'multiple' | 'value' | 'defaultValue' | 'onChange'> > | null | Configure date picker. |
DateRangePicker | Partial<Omit<DateRangePickerProps, 'key' | 'ref'>> | null | Configure date range picker. |
DateTimePicker | Partial<Omit<DateTimePickerProps, 'key' | 'ref'>> | null | Configure date time picker. |
Descriptions | Partial<Omit<DescriptionsProps, 'key' | 'ref' | 'items'>> | null | Configure descriptions. |
Divider | Partial<Omit<DividerProps, 'key' | 'ref'>> | null | Configure divider. |
Drawer | Partial<Omit<DrawerProps, 'key' | 'ref' | 'open'>> | null | Configure drawer. |
Dropdown | Partial<Omit<DropdownProps, 'key' | 'ref' | 'items' | 'children'>> | null | Configure dropdown. |
Empty | Partial<Omit<EmptyProps, 'key' | 'ref'>> | null | Configure empty. |
ErrorBoundary | Partial<Omit<ErrorBoundaryProps, 'key' | 'ref'>> | null | Configure error boundary. |
FileList | Partial<Omit<FileListProps, 'key' | 'ref' | 'items'>> | null | Configure file list. |
Flex | Partial<Omit<FlexProps, 'key' | 'ref'>> | null | Configure flex. |
FloatButton | Partial<Omit<FloatButtonProps, 'key' | 'ref'>> | null | Configure float button. |
FloatButtonGroup | Partial<Omit<FloatButtonGroupProps, 'key' | 'ref' | 'actions'>> | null | Configure float button group. |
Form | Partial<Omit<FormProps, 'key' | 'ref'>> | null | Configure form. |
FormErrorSummary | Partial<Omit<FormErrorSummaryProps, 'key' | 'ref'>> | null | Configure form error summary. |
FormField | Partial<Omit<FormFieldProps, 'key' | 'ref'>> | null | Configure form field. |
FormGroup | Partial<Omit<FormGroupProps, 'key' | 'ref'>> | null | Configure form group. |
FormList | Partial< Omit< FormListProps<unknown>, 'name' | 'children' | 'value' | 'defaultValue' | 'onChange' | 'itemKey' > > | null | Configure form list. |
Grid | Partial<Omit<GridProps, 'key' | 'ref'>> | null | Configure grid. |
Image | Partial<Omit<ImageProps, 'key' | 'ref'>> | null | Configure image. |
ImagePreview | Partial< Omit<ImagePreviewProps, 'key' | 'ref' | 'items' | 'open' | 'onClose'> > | null | Configure image preview. |
ImagePreviewGroup | Partial<Omit<ImagePreviewGroupProps, 'key' | 'ref'>> | null | Configure image preview group. |
InfiniteScroll | Partial< Omit<InfiniteScrollProps, 'key' | 'ref' | 'dataLength' | 'hasMore' | 'onLoadMore'> > | null | Configure infinite scroll. |
Input | Partial<Omit<InputProps, 'key' | 'ref'>> | null | Default input props, also inherited by InputSearch. |
InputGroup | Partial<Omit<InputGroupProps, 'key' | 'ref'>> | null | Configure input group. |
InputMask | Partial<Omit<InputMaskProps, 'key' | 'ref' | 'mask'>> | null | Configure input mask. |
InputNumber | Partial< Omit< InputNumberProps, 'key' | 'ref' | 'stringMode' | 'value' | 'defaultValue' | 'onChange' | 'min' | 'max' | 'step' > > | null | Configure input number. |
InputOTP | Partial<Omit<InputOTPProps, 'key' | 'ref'>> | null | Configure input otp. |
InputSearch | Partial<Omit<InputSearchProps, 'key' | 'ref'>> | null | Search input defaults, overriding Input defaults. |
Layout | Partial<Omit<LayoutProps, 'key' | 'ref'>> | null | Configure layout. |
LayoutContent | Partial<Omit<HTMLAttributes<HTMLElement>, 'key' | 'ref'>> | null | Configure layout content. |
LayoutFooter | Partial<Omit<HTMLAttributes<HTMLElement>, 'key' | 'ref'>> | null | Configure layout footer. |
LayoutHeader | Partial<Omit<HTMLAttributes<HTMLElement>, 'key' | 'ref'>> | null | Configure layout header. |
LayoutSider | Partial<Omit<LayoutSiderProps, 'key' | 'ref'>> | null | Configure layout sider. |
Link | Partial<Omit<LinkProps, 'key' | 'ref'>> | null | Configure link. |
Loading | Partial<Omit<LoadingProps, 'key' | 'ref'>> | null | Configure loading. |
LoadingBar | Partial<Omit<LoadingBarProps, 'key' | 'ref' | 'active' | 'progress'>> | null | Configure loading bar. |
Masonry | Partial<Omit<MasonryProps, 'key' | 'ref'>> | null | Configure masonry. |
Mentions | Partial<Omit<MentionsProps, 'key' | 'ref' | 'options'>> | null | Configure mentions. |
Menu | Partial<Omit<MenuProps, 'key' | 'ref' | 'items'>> | null | Configure menu. |
MenuGroup | Partial<Omit<MenuGroupProps, 'key' | 'ref' | 'title'>> | null | Configure menu group. |
Message | Partial<Omit<MessageOptions, 'key' | 'content'>> | null | Configure message. |
Modal | Partial<Omit<ModalProps, 'key' | 'ref' | 'open'>> | null | Default modal props. |
Notification | Partial<Omit<NotificationOptions, 'key' | 'title'>> | null | Configure notification. |
Pagination | Partial<Omit<PaginationProps, 'key' | 'ref' | 'total'>> | null | Configure pagination. |
Paragraph | Partial<Omit<ParagraphProps, 'key' | 'ref'>> | null | Configure paragraph. |
Popconfirm | Partial<Omit<PopconfirmProps, 'key' | 'ref' | 'children' | 'title'>> | null | Configure popconfirm. |
Popover | Partial<Omit<PopoverProps, 'key' | 'ref' | 'children' | 'content'>> | null | Configure popover. |
Progress | Partial<Omit<ProgressProps, 'key' | 'ref'>> | null | Configure progress. |
QRCode | Partial<Omit<QRCodeProps, 'key' | 'ref' | 'value'>> | null | Configure qrcode. |
Radio | Partial<Omit<RadioProps, 'key' | 'ref'>> | null | Configure radio. |
RadioGroup | Partial<Omit<RadioGroupProps, 'key' | 'ref' | 'options'>> | null | Configure radio group. |
Rate | Partial<Omit<RateProps, 'key' | 'ref'>> | null | Configure rate. |
Result | Partial<Omit<ResultProps, 'key' | 'ref'>> | null | Configure result. |
Row | Partial<Omit<RowProps, 'key' | 'ref'>> | null | Configure row. |
ScrollArea | Partial<Omit<ScrollAreaProps, 'key' | 'ref'>> | null | Configure scroll area. |
Scrollbar | Partial<Omit<ScrollbarProps, 'key' | 'ref'>> | null | Configure scrollbar. |
Select | Partial< Omit< SelectProps, 'key' | 'ref' | 'options' | 'multiple' | 'value' | 'defaultValue' | 'onChange' > > | null | Select defaults; mode, values and change callbacks stay on the instance. |
Skeleton | Partial<Omit<SkeletonProps, 'key' | 'ref'>> | null | Configure skeleton. |
Slider | Partial< Omit<SliderProps, 'key' | 'ref' | 'range' | 'value' | 'defaultValue' | 'onChange'> > | null | Configure slider. |
Space | Partial<Omit<SpaceProps, 'key' | 'ref'>> | null | Configure space. |
SplitButton | Partial<Omit<SplitButtonProps, 'key' | 'ref' | 'items'>> | null | Configure split button. |
Splitter | Partial<Omit<SplitterProps, 'key' | 'ref' | 'panels'>> | null | Configure splitter. |
Statistic | Partial<Omit<StatisticProps, 'key' | 'ref' | 'value'>> | null | Configure statistic. |
Steps | Partial<Omit<StepsProps, 'key' | 'ref' | 'items'>> | null | Configure steps. |
Switch | Partial<Omit<SwitchProps, 'key' | 'ref'>> | null | Configure switch. |
Tabs | Partial<Omit<TabsProps, 'key' | 'ref' | 'items'>> | null | Configure tabs. |
Tag | Partial<Omit<TagProps, 'key' | 'ref'>> | null | Configure tag. |
TagGroup | Partial<Omit<TagGroupProps, 'key' | 'ref' | 'options'>> | null | Configure tag group. |
Text | Partial<Omit<TextProps, 'key' | 'ref'>> | null | Configure text. |
Textarea | Partial<Omit<TextareaProps, 'key' | 'ref'>> | null | Configure textarea. |
Timeline | Partial<Omit<TimelineProps, 'key' | 'ref' | 'items'>> | null | Configure timeline. |
TimePicker | Partial<Omit<TimePickerProps, 'key' | 'ref'>> | null | Configure time picker. |
TimeRangePicker | Partial<Omit<TimeRangePickerProps, 'key' | 'ref'>> | null | Configure time range picker. |
Title | Partial<Omit<TitleProps, 'key' | 'ref'>> | null | Configure title. |
Toolbar | Partial<Omit<ToolbarProps, 'key' | 'ref'>> | null | Configure toolbar. |
Tooltip | Partial<Omit<TooltipProps, 'key' | 'ref' | 'content' | 'children'>> | null | Configure tooltip. |
Tour | Partial<Omit<TourProps, 'key' | 'ref' | 'open' | 'steps'>> | null | Configure tour. |
Transfer | Partial<Omit<TransferProps, 'key' | 'ref' | 'items'>> | null | Configure transfer. |
Tree | Partial<Omit<TreeProps, 'key' | 'ref' | 'data'>> | null | Configure tree. |
TreeSelect | Partial< Omit< TreeSelectProps, | 'key' | 'ref' | 'options' | 'multiple' | 'treeCheckable' | 'value' | 'defaultValue' | 'onChange' > > | null | Configure tree select. |
Typography | Partial<Omit<TypographyProps, 'key' | 'ref'>> | null | Configure typography. |
Upload | Partial<Omit<UploadProps, 'key' | 'ref'>> | null | Configure upload. |
VirtualList | (Partial< Omit<VirtualListProps<unknown>, 'items' | 'itemKey' | 'renderItem' | 'estimateSize'> > & { estimateSize?: number }) | null | Configure virtual list. |
#Type import
import type { LeafComponentDefaults } from '@ifhover/leaf-ui';
const components = {
Button: { variant: 'outline' },
Confirm: { confirmText: 'Continue', cancelText: 'Back' },
} satisfies LeafComponentDefaults;Pass this object to <ConfigProvider components={components}>. Instance props and individual service calls still take precedence.