Commit 79be47e 1 parent 035232a commit 79be47e Copy full SHA for 79be47e
File tree 3 files changed +40
-2
lines changed
3 files changed +40
-2
lines changed Original file line number Diff line number Diff line change
1
+ import { memo } from 'react' ;
2
+
3
+ import IconCombine , { type IconCombineProps } from '@/IconCombine' ;
4
+
5
+ import { SPACE_MULTIPLE , TEXT_MULTIPLE , TITLE } from '../style' ;
6
+ import Avatar from './Avatar' ;
7
+ import Text from './Text' ;
8
+
9
+ export type CombineProps = Omit < IconCombineProps , 'Icon' | 'Text' > ;
10
+
11
+ const Combine = memo < CombineProps > ( ( { ...rest } ) => {
12
+ return (
13
+ < IconCombine
14
+ Icon = { Avatar as any }
15
+ Text = { Text as any }
16
+ aria-label = { TITLE }
17
+ spaceMultiple = { SPACE_MULTIPLE }
18
+ textMultiple = { TEXT_MULTIPLE }
19
+ { ...rest }
20
+ />
21
+ ) ;
22
+ } ) ;
23
+
24
+ export default Combine ;
Original file line number Diff line number Diff line change @@ -23,6 +23,20 @@ import { Groq } from '@lobehub/icons';
23
23
export default () => <Groq.Text size = { 48 } />;
24
24
```
25
25
26
+ ## Combine
27
+
28
+ ``` tsx
29
+ import { Groq } from ' @lobehub/icons' ;
30
+ import { Flexbox } from ' react-layout-kit' ;
31
+
32
+ export default () => (
33
+ <Flexbox gap = { 16 } >
34
+ <Groq.Combine size = { 64 } />
35
+ <Groq.Combine size = { 64 } type = { ' color' } />
36
+ </Flexbox >
37
+ );
38
+ ```
39
+
26
40
## Avatars
27
41
28
42
``` tsx
Original file line number Diff line number Diff line change @@ -449,9 +449,9 @@ export type IconType = ForwardRefExoticComponent<
449
449
| 'onPointerCancel'
450
450
| 'onPointerCancelCapture'
451
451
| 'onPointerEnter'
452
- | 'onPointerEnterCapture'
452
+ // | 'onPointerEnterCapture'
453
453
| 'onPointerLeave'
454
- | 'onPointerLeaveCapture'
454
+ // | 'onPointerLeaveCapture'
455
455
| 'onPointerOver'
456
456
| 'onPointerOverCapture'
457
457
| 'onPointerOut'
You can’t perform that action at this time.
0 commit comments