1.1.0 • Published 10 days ago

@bitmetro/app-layout-antd v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
10 days ago

Antd layout

This is a simple package to help me bootstrap a simple antd application quickly.

Requires the following packages:

next: ^13.4.4
react: ^18.2.0
antd: ^5.6.1

Example:

export default function App({}: AppProps) {
  return (
    <AppLayoutProvider
      title="App name"
      logo="/logo.png"
      logoAlt="My Logo"
      homeUrl={"/"}
      navItems={[
        createNavMenuItem("Config", urls.config.home(), <SettingOutlined />),
        createNavMenuItem("Projects", urls.projects.home(), <AppstoreOutlined />),
        createNavMenuItem("API Keys", urls.apiKeys.home(), <ApiOutlined />),
      ]}
      breadcrumbResolvers={{
        "[projectId]": async (id) => (await getProjectById(id)).name,
      }}
      appBar={<p>Hello user</p>}
      appBarStyles={{ backgroundColor: "white" }}
    >
      <Component {...pageProps} />
    </AppLayoutProvider>
  )
}
1.1.0

10 days ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago