diff --git a/libs/remix-ui/tree-view/src/lib/hooks/extract-data.tsx b/libs/remix-ui/tree-view/src/lib/hooks/extract-data.tsx new file mode 100644 index 0000000000..8564ed6b2d --- /dev/null +++ b/libs/remix-ui/tree-view/src/lib/hooks/extract-data.tsx @@ -0,0 +1,5 @@ +import React from 'react' + +const useExtractData = () => { + +} \ No newline at end of file diff --git a/libs/remix-ui/tree-view/src/lib/remix-ui-tree-view.css b/libs/remix-ui/tree-view/src/lib/remix-ui-tree-view.css index e69de29bb2..7e8fbee405 100644 --- a/libs/remix-ui/tree-view/src/lib/remix-ui-tree-view.css +++ b/libs/remix-ui/tree-view/src/lib/remix-ui-tree-view.css @@ -0,0 +1,32 @@ +.li_tv { + list-style-type: none; + -webkit-margin-before: 0px; + -webkit-margin-after: 0px; + -webkit-margin-start: 0px; + -webkit-margin-end: 0px; + -webkit-padding-start: 0px; + } + .ul_tv { + list-style-type: none; + -webkit-margin-before: 0px; + -webkit-margin-after: 0px; + -webkit-margin-start: 0px; + -webkit-margin-end: 0px; + -webkit-padding-start: 0px; + } + .caret_tv { + width: 10px; + flex-shrink: 0; + padding-right: 5px; + } + .label_item { + word-break: break-all; + } + .label_key { + min-width: 15%; + max-width: 80%; + word-break: break-word; + } + .label_value { + min-width: 10%; + } \ No newline at end of file diff --git a/libs/remix-ui/tree-view/src/lib/remix-ui-tree-view.tsx b/libs/remix-ui/tree-view/src/lib/remix-ui-tree-view.tsx index d2544cbd83..c2a03f9bfb 100644 --- a/libs/remix-ui/tree-view/src/lib/remix-ui-tree-view.tsx +++ b/libs/remix-ui/tree-view/src/lib/remix-ui-tree-view.tsx @@ -1,16 +1,43 @@ -import React from 'react'; +import React, { useState } from 'react' -import './remix-ui-tree-view.css'; +import './remix-ui-tree-view.css' -/* eslint-disable-next-line */ -export interface RemixUiTreeViewProps {} +export interface RemixUiTreeViewProps { + data: [] +} export const RemixUiTreeView = (props: RemixUiTreeViewProps) => { return ( -
-

Welcome to remix-ui-tree-view!

-
- ); -}; + ) +} -export default RemixUiTreeView; +export default RemixUiTreeView