Skip to content

Commit

Permalink
Merge pull request #28 from kaiachain/pr-27
Browse files Browse the repository at this point in the history
Pr 27
  • Loading branch information
skqksh authored Jan 15, 2025
2 parents fe74a22 + 67518f4 commit ff37b7f
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 289 deletions.
3 changes: 1 addition & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"styled-components": "^6.1.11",
"@kaiachain/kaia-design-system": "file:../"
"styled-components": "^6.1.11"
},
"devDependencies": {
"@types/react": "^18.2.66",
Expand Down
7 changes: 4 additions & 3 deletions example/src/Home/SelectBoxes.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useState } from 'react'
import { KaText, KaSelectBox } from '@kaiachain/kaia-design-system'
import kaiaLogo from '../assets/kaia.svg'

const SelectBoxes = () => {
const [selected, setSelected] = useState<string>('')
Expand All @@ -16,7 +17,7 @@ const SelectBoxes = () => {
{
value: '0',
label: 'Option 1',
img: 'https://square-file.qa.klaytn.net/files/profile/default.png',
img: <img src="https://dummyimage.com/100x100/000/fff" />,
},
{ value: '1', label: 'Disabled Option2', isDisabled: true },
{ value: '2', label: 'Option 3' },
Expand All @@ -38,12 +39,12 @@ const SelectBoxes = () => {
{
value: '3',
label: 'SubItem 1',
img: 'https://square-file.qa.klaytn.net/files/profile/default.png',
img: 'https://dummyimage.com/100x100/000/fff',
subItems: [
{
value: '5',
label: 'More SubItem 1',
img: 'https://square-file.qa.klaytn.net/files/profile/default.png',
img: <img src={kaiaLogo} />,
},
{ value: '6', label: 'More SubItem 2' },
],
Expand Down
11 changes: 11 additions & 0 deletions example/src/assets/kaia.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ff37b7f

Please sign in to comment.