This package has been deprecated

Author message:

Please use Aksara UI instead: https://aksara-ui.vercel.app/

@kata-kit/dashboard
TypeScript icon, indicating that this package has built-in type declarations

0.7.5 • Public • Published

@kata-kit/dashboard

Dashboard component for Wicara.

Install

# yarn
yarn add @kata-kit/dashboard
# npm
npm install @kata-kit/dashboard

Usage

To use this component within your React app, import as follows:

import { Dashboard } from '@kata-kit/dashboard';

const Component = () => (
  <Dashboard
    isStarter
    title="Wicara Demo"
    headerContent={
      <p>
        This project is intended to test the look and feel of the kata-kit
        component, as well as a development environment.
      </p>
    }
  >
    ...
  </Dashboard>
);

Dashboard Cards

You can also render cards on a fluid grid inside a dashboard.

import { Dashboard } from '@kata-kit/dashboard';
import { Card } from '@kata-kit/card';

const Component = () => (
  <DashboardCards>
    <Card asButton>
      <CardButton label={'Create'} icon="add" />
    </Card>
    <Card
      title="Second Card"
      avatarComponent={
        <Avatar src="https://picsum.photos/350/150/?image=821" />
      }
      action={
        <Button color="secondary" isIcon>
          <i className="icon-more" />
        </Button>
      }
    >
      Lorem Ipsum has been the industry's standard dummy text ever since the
      1500s, when an unknown printer took a galley of type and scrambled it to
      make a type specimen book.
    </Card>
    <Card title="Third Card">
      It has survived not only five centuries, but also the leap into electronic
      typesetting, remaining essentially unchanged.
    </Card>
  </DashboardCards>
);

Readme

Keywords

none

Package Sidebar

Install

npm i @kata-kit/dashboard

Weekly Downloads

0

Version

0.7.5

License

Apache-2.0

Unpacked Size

110 kB

Total Files

15

Last publish

Collaborators

  • computecoholic
  • resir014
  • ybdev