@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
1 lines • 1.01 kB
Source Map (JSON)
{"version":3,"file":"LayoutSidebar.mjs","names":[],"sources":["../../../src/Layout/components/LayoutSidebar.tsx"],"sourcesContent":["'use client';\n\nimport { cx } from 'antd-style';\nimport { memo } from 'react';\n\nimport { styles } from '../style';\nimport type { LayoutSidebarProps } from '../type';\n\nexport const LayoutSidebar = memo<LayoutSidebarProps>(\n ({ headerHeight, children, className, style, ...rest }) => {\n return (\n <aside\n className={cx(styles.aside, className)}\n style={{\n top: `var(--layout-header-height, ${headerHeight}px)`,\n ...style,\n }}\n {...rest}\n >\n {children}\n </aside>\n );\n },\n);\n\nLayoutSidebar.displayName = 'LayoutSidebar';\n\nexport default LayoutSidebar;\n"],"mappings":";;;;;;;;AAQA,MAAa,gBAAgB,MAC1B,EAAE,cAAc,UAAU,WAAW,OAAO,GAAG,WAAW;AACzD,QACE,oBAAC;EACC,WAAW,GAAG,OAAO,OAAO,UAAU;EACtC,OAAO;GACL,KAAK,+BAA+B,aAAa;GACjD,GAAG;GACJ;EACD,GAAI;EAEH;GACK;EAGb;AAED,cAAc,cAAc;AAE5B,4BAAe"}