New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@mints/miller-columns

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mints/miller-columns

Miller Columns for Mints Components

latest
Source
npmnpm
Version
2.0.0-beta.11
Version published
Weekly downloads
35
-59.3%
Maintainers
0
Weekly downloads
 
Created
Source

Please be aware that this component has been significantly updated in version 2.0. You can access the 1.0 release here. Bug fixes for version 1.0 will continue to be maintained..

Miller Columns

Miller Columns Component based on MUI.

Features

  • Easy to use, and only one required prop.
  • Implement scrolling loading data on a column by react-infinite-scroll-component.
  • Written in TypeScript to achieve good type support.

Installation

# Yarn
$ yarn add @mints/miller-columns

# Npm
$ npm install --save @mints/miller-columns

Usage

import { MillerColumns } from '@mints/miller-columns';

const request = () => {
  return {
    data: [],
    hasMore: false,
  };
};

export const TestComponent = () => {
  return <MillerColumns request={request} />;
};

Props

PropTypeDefaultDescription
request(id?: IDType, params?: any) => Promise<RequestResType>Asynchronous method for getting data
rootIdIDTypeParameters of the first request
loadingbooleantrueCooperate with items control
itemsDataType[]item used to display in columns
styleReact.CSSProperties
borderedbooleanfalse
theme{ colorPrimary?: string; borderColor?: string; }
columnCountnumber3columns to display in a container
columnHeightnumbercolumns height (control scrolling)
renderTitle(id: IDType) => React.ReactNodedisplay column title
renderEnd(id: IDType) => React.ReactNodedisplay column end
renderLoading(id: IDType) => React.ReactNodedisplay column loading
renderError(errMsg: string) => React.ReactNodedisplay column error
renderNoData(id: IDType) => React.ReactNodedisplay column no data
selectablebooleanfalse
modesingle or multiplemultipleSingle select or multiple select
disabledIdsIDType[]disabled ids
selectedIdsIDType[]selected ids
onSelectedIds(ids: IDType[], data?: any[]) => voidset selected ids

Start Example(Development)

$ yarn storybook

LICENSE

MIT

Keywords

react

FAQs

Package last updated on 29 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts