A React component for simulating color blindness in web application development
npm install @color-blindness-devtool/reactA React component for simulating color blindness in web application development.
``bash`
npm install @color-blindness-devtool/react
Import the ColorBlindnessDevtool component and wrap your application with it.
`jsx
import { ColorBlindnessDevtool } from '@color-blindness-devtool/react'
function App() {
return (
{/ Your application here /}
)
}
`
You can disable the devtool by setting the disabled prop to true.
This is particularly useful for disabling the simulation in production environments:
`tsx``