Skip to content

Commit de926fb

Browse files
committed
feat: modern css story
1 parent 434177d commit de926fb

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

packages/core/src/stories/BasicExamples.stories.tsx

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,27 +254,41 @@ export const MultipleTrees2 = () => (
254254
getItemTitle={item => item.data}
255255
viewState={{
256256
'tree-1': {
257-
expandedItems: ['Fruit', 'Meals'],
257+
expandedItems: ['Meals', 'Europe'],
258+
selectedItems: ['Risotto', 'Pizza', 'Weisswurst', 'Spargel'],
259+
focusedItem: 'Spargel',
260+
},
261+
'tree-2': {
262+
expandedItems: ['Fruit', 'Berries'],
263+
selectedItems: ['Orange'],
264+
focusedItem: 'Orange',
258265
},
259266
}}
260267
>
261268
<div
262269
style={{
263270
display: 'flex',
264-
justifyContent: 'space-evenly',
265-
alignItems: 'baseline',
271+
justifyContent: 'space-between',
272+
alignItems: 'stretch',
266273
}}
267274
>
268275
<div
269276
style={{
270-
width: '49%',
277+
width: '44%',
278+
backgroundColor: '#fff',
279+
color: '#000',
280+
borderRadius: '12px',
271281
}}
272282
>
273283
<Tree treeId="tree-1" rootItem="root" treeLabel="Tree 1" />
274284
</div>
275285
<div
286+
className="rct-dark"
276287
style={{
277-
width: '49%',
288+
width: '44%',
289+
backgroundColor: '#222',
290+
color: '#e3e3e3',
291+
borderRadius: '12px',
278292
}}
279293
>
280294
<Tree treeId="tree-2" rootItem="root" treeLabel="Tree 2" />

0 commit comments

Comments
 (0)