@ied/row

1.0.2 • Public • Published

Row

Install

yarn add @ied/row

If you use icon property, add this to your index.html

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

Use

import Row from '@ied/row'

1 - Row with icon + description + inline + hoverable

<Row
  icon="business"
  label="Wednesday"
  description="Filenumber"
  inline
  hoverable
/>

2 - Row with icon + description + hoverable

<Row icon="person" label="Mr World" description="Filenumber" hoverable />

3 - Row with icon + hoverable

<Row icon="date_range" label="Czernobog" hoverable />

4 - Row with description + hoverable

<Row label="Media" description="media@gmail.com" hoverable />

5 - Row with description + inline + hoverable

<Row label="Media" description="media@gmail.com" hoverable inline />

6 - Row with badge(icon, small) + description + hoverable

<Row
  label="Shadow Moon"
  badge={{ icon: 'people', small: true }}
  description="shadowmoon@gmail.com"
  hoverable
/>

7 - Row with badge(icon) + description + hoverable

<Row
  label="Shadow Moon"
  badge={{ icon: 'people' }}
  description="shadowmoon@gmail.com"
  hoverable
/>

8 - Row with badge(fullName) + description + hoverable

<Row
  label="Clark Kent"
  badge={{ firstName: 'Clark', lastName: 'Kent' }}
  description="shadowmoon@gmail.com"
  hoverable
/>

9 - Row with badge(fullName, small) + description + hoverable

<Row
  label="Clark Kent"
  badge={{ firstName: 'Clark', lastName: 'Kent', small: true }}
  description="lowkey@gmail.com"
  hoverable
  inline
/>

Types

type Props = {
  icon?: string,
  label: string,
  description?: string,
  badge?: {
    lastName?: string,
    firstName?: string,
    icon?: string,
    small?: boolean,
  },
  style?: {},
  className?: string,
  inline?: boolean,
  hoverable?: boolean,
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    1
    • latest

Version History

Package Sidebar

Install

npm i @ied/row

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

25.8 kB

Total Files

7

Last publish

Collaborators

  • vibbou
  • lfalorni