LobeChatLobeHub
UI
Components
Chat
Mobile
Awesome
Brand
Mdx
Icons
Color
Changelog
Ctrl
K
General
ActionIcon
ActionIconGroup
Block
Button
Icon
Data Display
Avatar
Collapse
FileTypeIcon
FluentEmoji
GuideCard
Highlighter
Hotkey
Image
List
Markdown
MaterialFileTypeIcon
Mermaid
Segmented
Snippet
SortableList
Tag
Tooltip
Video
Data Entry
AutoComplete
CodeEditor
ColorSwatches
CopyButton
DatePicker
EditableText
EmojiPicker
Form
FormModal
HotkeyInput
ImageSelect
Input
SearchBar
Select
SliderWithInput
ThemeSwitch
Feedback
Alert
Drawer
Modal
Layout
DraggablePanel
Footer
Grid
Header
Layout
MaskShadow
ScrollShadow
Navigation
Burger
Dropdown
Menu
SideNav
Tabs
Toc
Theme
ConfigProvider
FontLoader
ThemeProvider

Button

Button is a powerful component that supports multiple style variants, sizes, and interaction states. It extends Ant Design's Button with enhanced styling and icon support.

import { Button } from '@lobehub/ui';
NPM
UNPKG
BundlePhobia
PackagePhobia
Anvaka Graph
Source
Edit
Previous
Block
Next
Icon

Resources

Lobe UI-AIGC Components
Lobe Icon-AI / LLM Icon Collection
Lobe Charts-Modern Charts
Lobe TTS-TTS / STT Library

Community

Report Bug
Request Feature

Help

GitHub
Changelog

More Products

🤯 Lobe Chat-AI / LLM Chat Framework
🧸 Lobe Vidol-Virtual Idols for EveryOne
🅰️ Lobe Theme-Stable Diffusion Extension
🌐 Lobe i18n-AI i18next CLI
Copyright © 2022-2025
Made with 🤯 by LobeHub
LobeHub

Introduction

Button is a fundamental component that provides rich styling and interaction options. It's suitable for various button interaction scenarios.

Basic Usage

Variants

Button supports multiple style variants, including default, filled, outlined, and dashed styles.

APIs

Button

PropertyDescriptionTypeDefault
glassApply glass effect to buttonbooleanfalse
iconIcon component or Lucide icon nameIconProps['icon']-
iconPropsProperties for the icon componentPartial<Omit<IconProps, 'icon'>>-
shadowAdd shadow effect to buttonbooleanfalse
variantStyle variant'filled' | 'outlined' | 'dashed' | 'text' | 'link''outlined' (light mode)
'filled' (dark mode)

Additionally, Button supports all properties from Ant Design's Button component except icon, which has been replaced with a more flexible implementation.