Signed-off-by: Avior <github@avior.me>
This commit is contained in:
2021-10-06 17:57:59 +02:00
parent bb001148a5
commit 8d7a8c70f0
73 changed files with 1508 additions and 6817 deletions

View File

@ -0,0 +1,44 @@
import { Meta, Story } from '@storybook/react/types-6-0'
import React from 'react'
import { Zap, ZapOff } from 'lucide-react'
import Component from '.'
import Text from '../Text'
export default {
title: 'DZEIO/Navbar',
component: Component,
parameters: {
layout: 'fullscreen'
}
} as Meta
export const Basic: Story<any> = (args: any) => <Component {...args} />
Basic.args = {
type: 'navbar',
logo: {src: '/90-38.svg', width: 90, height: 38},
loginUrl: '/login',
registerUrl: '/register',
user: {
name: 'Username',
description: 'User Description',
menu: {
links: [{
path: '/logout',
name: 'Logout'
}, {
path: '/logout',
name: 'Logout'
}],
informations: (<Text>Testing :D</Text>)
}
},
items: [{
path: '/dashboard',
name: 'Dasboard',
icon: Zap
}, {
path: '/dashboard',
name: 'Dasboard',
icon: ZapOff
}],
}