‚̧Normal Programming Mistake
    Wondering what‚Äôs next for npm?Check out our public roadmap! ¬Ľ

    @govuk-react/ordered-list

    0.7.1¬†‚Äʬ†Public¬†‚Äʬ†Published

    OrderedList

    Import

      import OrderedList from '@govuk-react/ordered-list';

    Usage

    Simple

    import OrderedList from '@govuk-react/ordered-list';
    import ListItem from '@govuk-react/list-item';
     
    <OrderedList>
      <ListItem>Lorem ipsum dolor sit.</ListItem>
      <ListItem>Consectetur adipiscing elit.</ListItem>
      <ListItem>Curabitur et libero nec.</ListItem>
    </OrderedList>

    with Roman

    import OrderedList from '@govuk-react/ordered-list';
    import ListItem from '@govuk-react/list-item';
     
    <OrderedList listStyleType="lower-roman">
      <ListItem>Lorem ipsum dolor sit.</ListItem>
      <ListItem>Consectetur adipiscing elit.</ListItem>
      <ListItem>Curabitur et libero nec.</ListItem>
    </OrderedList>

    References

    TODO

    Properties

    Prop Required Default Type Description
    children true `````` node One or more ListItem components
    listStyleType undefined string CSS value for list-style-type, or bullet or number to match govuk-frontend

    Keywords

    none

    Install

    npm i @govuk-react/ordered-list

    DownloadsWeekly Downloads

    532

    Version

    0.7.1

    License

    MIT

    Unpacked Size

    61.8 kB

    Total Files

    18

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar