# @coze-arch/bot-semi A comprehensive UI component library that provides wrapped and enhanced components based on SemiDesign UI framework. This package serves as the foundation UI layer for the Coze bot studio platform, offering both direct Semi UI re-exports and custom-styled components. ## Features - **Enhanced Semi UI Components** - Custom-styled versions of Semi UI components with platform-specific theming - **Direct Semi UI Re-exports** - Access to all Semi UI components through a single package - **Custom Hooks** - Specialized hooks like `useGrab` for advanced UI interactions - **TypeScript Support** - Full TypeScript definitions and type safety - **Modular Exports** - Individual component imports for optimal bundle size - **Platform Integration** - Built-in integration with Coze icons and internationalization ## Get Started ### Installation Add the package to your project using workspace dependencies: ```json { "dependencies": { "@coze-arch/bot-semi": "workspace:*" } } ``` Then run: ```bash rush update ``` ### Basic Usage Import components individually for optimal tree-shaking: ```tsx import { UIButton, UIModal, useUIModal } from '@coze-arch/bot-semi'; import { Button, Input, Table } from '@coze-arch/bot-semi'; function MyComponent() { const modal = useUIModal(); return (
modal.show()}> Open Modal Modal Content
); } ``` ## API Reference ### Enhanced UI Components #### UIButton Custom-styled button component with enhanced theming: ```tsx import { UIButton } from '@coze-arch/bot-semi/Button'; Click me ``` #### UIModal Enhanced modal with platform-specific styling and behavior: ```tsx import { UIModal, useUIModal } from '@coze-arch/bot-semi/Modal'; const modal = useUIModal(); Content ``` #### UITable Feature-rich table component with action integration: ```tsx import { UITable, UITableAction } from '@coze-arch/bot-semi'; ( )} /> ``` #### UIInput Enhanced input component with platform styling: ```tsx import { UIInput } from '@coze-arch/bot-semi/Input'; ``` ### Form Components #### UIFormInput, UIFormTextArea, UIFormSelect Pre-configured form components: ```tsx import { UIFormInput, UIFormTextArea, UIFormSelect } from '@coze-arch/bot-semi';
``` ### Layout Components #### UILayout Platform-specific layout wrapper: ```tsx import { UILayout } from '@coze-arch/bot-semi/Layout'; } footer={