34 |
35 |
36 |
37 | {firstName} {lastName}
38 |
39 | #{id}
40 |
41 |
42 |
43 |
- Type
44 | - {type}
45 |
46 |
47 |
- Occupation
48 | - {occupation}
49 |
50 |
51 |
- Department
52 | - {department}
53 |
54 |
55 |
56 |
57 |
- Strength
58 | - {strength}
59 |
60 |
61 |
- Intelligence
62 | - {intelligence}
63 |
64 |
65 |
- Wisdom
66 | - {wisdom}
67 |
68 |
69 |
- Charisma
70 | - {charisma}
71 |
72 |
73 |
- Dexterity
74 | - {dexterity}
75 |
76 |
77 |
- Constitution
78 | - {constitution}
79 |
80 |
81 |
82 | );
83 | };
84 |
85 | export default CharacterCard;
86 |
--------------------------------------------------------------------------------
/src/examples/character-search/index.tsx:
--------------------------------------------------------------------------------
1 | import Frame from '$components/frame';
2 | import Input from '$components/input';
3 | import CharacterCard from './character-card';
4 | import CharacterSearchInput from './search-input';
5 |
6 | const character = {
7 | id: 1,
8 | firstName: 'Vivia',
9 | lastName: 'Try',
10 | avatarUrl: 'https://robohash.org/quassedquis.png?size=50x50&set=set1',
11 | type: 'Grass',
12 | department: 'Business Development',
13 | occupation: 'Mechanical Systems Engineer',
14 | strength: 17,
15 | intelligence: 15,
16 | wisdom: 15,
17 | charisma: 17,
18 | dexterity: 15,
19 | constitution: 16,
20 | };
21 |
22 | const CharacterSearch = () => {
23 | return (
24 |