Skip to content

Latest commit

 

History

History
20 lines (19 loc) · 663 Bytes

File metadata and controls

20 lines (19 loc) · 663 Bytes

Error

Props Type Required? Other Info (optional)
copy string
customClass string
imageUrl string
hasError boolean Yes
redirect string
setHasError function Yes
className Description (optional)
CC-Error--container Container for image and copy
CC-Error--image Image
CC-Error--copy Copy
const [error, setError] = useState(false)
<Error copy="There has been an error" imageUrl="image.com" hasError={error} redirect="where.to-end-up.com" setHasError={setError} />

BACK