mirror of
https://github.com/dzeiocom/components.git
synced 2025-04-23 19:32:14 +00:00
feat: add left childrens to navbar
Signed-off-by: Avior <github@avior.me>
This commit is contained in:
parent
2bb4e9830e
commit
f213ec4f09
@ -35,3 +35,7 @@ $height = 76px
|
|||||||
&.shown
|
&.shown
|
||||||
opacity 1
|
opacity 1
|
||||||
pointer-events initial
|
pointer-events initial
|
||||||
|
|
||||||
|
|
||||||
|
.header
|
||||||
|
margin-right 16px
|
||||||
|
@ -3,6 +3,8 @@ import React from 'react'
|
|||||||
import { Zap, ZapOff } from 'lucide-react'
|
import { Zap, ZapOff } from 'lucide-react'
|
||||||
import Component from '.'
|
import Component from '.'
|
||||||
import Text from '../Text'
|
import Text from '../Text'
|
||||||
|
import Col from '../Col'
|
||||||
|
import Row from '../Row'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'DZEIO/Navbar',
|
title: 'DZEIO/Navbar',
|
||||||
@ -42,4 +44,12 @@ Navbar.args = {
|
|||||||
name: 'Link',
|
name: 'Link',
|
||||||
icon: ZapOff
|
icon: ZapOff
|
||||||
}],
|
}],
|
||||||
|
children: (
|
||||||
|
<Row align='center'>
|
||||||
|
<Col><Text>Test</Text></Col>
|
||||||
|
<Col><Text>Test</Text></Col>
|
||||||
|
<Col><Text>Test</Text></Col>
|
||||||
|
<Col><Text>Test</Text></Col>
|
||||||
|
</Row>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
@ -52,6 +52,7 @@ interface Props {
|
|||||||
* Links to display
|
* Links to display
|
||||||
*/
|
*/
|
||||||
menu: Array<MenuItem>
|
menu: Array<MenuItem>
|
||||||
|
children?: React.ReactNode
|
||||||
}
|
}
|
||||||
|
|
||||||
interface State {
|
interface State {
|
||||||
@ -124,6 +125,7 @@ export default class Navbar extends React.Component<Props, State> {
|
|||||||
</Col>
|
</Col>
|
||||||
)}
|
)}
|
||||||
</Row>
|
</Row>
|
||||||
|
{this.props.children}
|
||||||
{/* Spacer */}
|
{/* Spacer */}
|
||||||
<div style={{flex: 1}}></div>
|
<div style={{flex: 1}}></div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user