-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2eb6e4d
commit 8020388
Showing
10 changed files
with
73 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
--- | ||
hero: | ||
title: LobeHub <b>Icons</b> | ||
description: Popular LLM model brand svg logo and icon collection | ||
description: Popular AI / LLM Model Brand SVG Logo and Icon Collection | ||
--- | ||
|
||
<code src="./index.tsx" inline></code> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import * as Icons from '@lobehub/icons'; | ||
import { StoryBook, useControls, useCreateStore } from '@lobehub/ui'; | ||
import { createStyles } from 'antd-style'; | ||
import { Flexbox } from 'react-layout-kit'; | ||
|
||
const data = Object.values(Icons).filter((icon: any) => icon?.colorPrimary); | ||
|
||
const useStyles = createStyles(({ css, token }) => ({ | ||
container: css` | ||
overflow: hidden; | ||
max-width: 960px; | ||
margin-top: -4%; | ||
border: 1px solid ${token.colorBorder}; | ||
border-radius: ${token.borderRadiusLG}px; | ||
`, | ||
item: css` | ||
width: 96px; | ||
height: 96px; | ||
background: ${token.colorBgContainer}; | ||
`, | ||
})); | ||
|
||
export default () => { | ||
const { styles } = useStyles(); | ||
const store = useCreateStore(); | ||
|
||
const { size, color, monochrome } = useControls( | ||
{ | ||
color: { | ||
color: true, | ||
value: '#fff', | ||
}, | ||
monochrome: true, | ||
size: { | ||
max: 96, | ||
min: 16, | ||
step: 1, | ||
value: 48, | ||
}, | ||
}, | ||
{ store }, | ||
); | ||
|
||
return ( | ||
<StoryBook className={styles.container} levaStore={store}> | ||
<Flexbox align={'center'} gap={4} horizontal justify={'center'} style={{ flexWrap: 'wrap' }}> | ||
{data.map((Icon: any, index) => { | ||
const IconRender = !monochrome && Icon.Color ? Icon.Color : Icon; | ||
|
||
return ( | ||
<Flexbox align={'center'} className={styles.item} justify={'center'} key={index}> | ||
<IconRender color={color === '#fff' ? undefined : color} size={size} /> | ||
</Flexbox> | ||
); | ||
})} | ||
</Flexbox> | ||
</StoryBook> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters