@admui/link
```jsx import { MemoryRouter } from 'react-router-dom' import { PlainRouteItem, PlainItem } from '@admui/navigation' import { ThemeProvider } from '@admui/theme' import { Panel } from '@admui/panel' import { Link, RouteLink } from '@admui/link'
Last updated a year ago by tmonstrs .
MIT · Original npm · Tarball · package.json
$ cnpm install @admui/link 
SYNC missed versions from official npm registry.
import { MemoryRouter } from 'react-router-dom'
import { PlainRouteItem, PlainItem } from '@admui/navigation'
import { ThemeProvider } from '@admui/theme'
import { Panel } from '@admui/panel'
import { Link, RouteLink } from '@admui/link'

;<ThemeProvider>
  <MemoryRouter>
    <div style={{ width: '100%', height: 250 }}>
      <Panel>
        <div style={{ padding: 20 }}>
          <Link href={window.location.href}>
            Ссылка
          </Link>
        </div>
        <div style={{ padding: 20 }}>
          <RouteLink to='/some'>
            Ссылка роутера
          </RouteLink>
        </div>
      </Panel>
    </div>
  </MemoryRouter>
</ThemeProvider>
import { MemoryRouter } from 'react-router-dom'
import { PlainRouteItem, PlainItem } from '@admui/navigation'
import { ThemeProvider } from '@admui/theme'
import { Row, Layout } from '@admui/layout'
import { Panel } from '@admui/panel'
import { Link, RouteLink, NavLink } from '@admui/link'

;<ThemeProvider>
  <MemoryRouter initialEntries={['/a']}>
    <div style={{ width: '100%', height: 250 }}>
      <Panel>
        <div style={{ padding: 40, height: 40 }}>
          <Row fill>
            <Layout>
              <NavLink to='/a'>
                Пункт 1
              </NavLink>
            </Layout>
            <Layout basis={16} />
            <Layout>
              <NavLink to='/b'>
                Пункт 2
              </NavLink>
            </Layout>
          </Row>
        </div>
      </Panel>
    </div>
  </MemoryRouter>
</ThemeProvider>

Current Tags

  • 0.3.0                                ...           latest (a year ago)

4 Versions

  • 0.3.0                                ...           a year ago
  • 0.1.12                                ...           2 years ago
  • 0.1.11                                ...           2 years ago
  • 0.1.10                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 12
Last Day 0
Last Week 0
Last Month 4
Dependencies (1)
Dev Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |