1.1.0 • Published 5 years ago

@ds-kit/list v1.1.0

Weekly downloads
-
License
LicenseRef-LICENS...
Repository
-
Last release
5 years ago

title: "List" slug: "/packages/list" category: "general" componentNames:

  • "Ul"
  • "Ol"
  • "Li"

List

import { Ul, Ol, Li } from "@ds-kit/list"

Unordered List

A basic example of an unordered List component can look like this:

<Ul>
  <Li>Item 1</Li>
  <Li>Item 2</Li>
  <Li>Item 3</Li>
</Ul>

Ordered List

<Ol ml="5">
  <Li>Item 1</Li>
  <Li color="blue">Item 2</Li>
  <Li>Item 3</Li>
</Ol>

Composition of Lists

<Ul>
  <Li>
    Item 1
    <Ol>
      <Li>SubItem 1.1</Li>
      <Li>SubItem 1.2</Li>
      <Li>SubItem 1.3</Li>
    </Ol>
  </Li>
  <Li>Item 2</Li>
  <Li>Item 3</Li>
</Ul>
1.1.0

5 years ago

1.0.0

5 years ago

0.1.0

5 years ago