UNPKG

@patternfly/react-core

Version:

This library provides a set of common React components for use with the PatternFly reference implementation.

17 lines (12 loc) 424 B
--- id: Password generator section: patterns --- import { useEffect, useRef, useState } from 'react'; import RedoIcon from '@patternfly/react-icons/dist/esm/icons/redo-icon'; import EyeIcon from '@patternfly/react-icons/dist/esm/icons/eye-icon'; import EyeSlashIcon from '@patternfly/react-icons/dist/esm/icons/eye-slash-icon'; ## Demos ### Provide a generated password ```ts file="./examples/PasswordGenerator.tsx" ```