@govuk-react/unordered-list

    0.9.0 • Public • Published

    UnorderedList

    Import

      import UnorderedList from '@govuk-react/unordered-list';

    Usage

    Simple

    import { UnorderedList, ListItem} from 'govuk-react';
    
    <UnorderedList>
      <ListItem>Lorem ipsum dolor sit.</ListItem>
      <ListItem>Consectetur adipiscing elit.</ListItem>
      <ListItem>Curabitur et libero nec.</ListItem>
    </UnorderedList>

    With Roman

    import { UnorderedList, ListItem} from 'govuk-react';
    
    <UnorderedList listStyleType="lower-roman">
      <ListItem>Lorem ipsum dolor sit.</ListItem>
      <ListItem>Consectetur adipiscing elit.</ListItem>
      <ListItem>Curabitur et libero nec.</ListItem>
    </UnorderedList>

    References

    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/unordered-list

    DownloadsWeekly Downloads

    2,279

    Version

    0.9.0

    License

    MIT

    Unpacked Size

    43.6 kB

    Total Files

    18

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar