Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 475 Bytes

Permutation.md

File metadata and controls

22 lines (17 loc) · 475 Bytes

Permutation

A component which presents a permutation (a shuffled copy) of the pieces of input content.

Example

<Permutation pick={2}>
  {/* children */}
  {[
    'one',
    'two',
    'three',
    'four',
  ]}
</Permutation>

Property arguments

  • children: (MaybeReadonlyArray<ReactNodeWithoutNullOrUndefined>): A list of content to be presented in shuffled order.
  • pick?: (number): The number of items in the list that should be displayed.