GreenWolf Design
GreenWolf Design
Get started

Use in React

React 19 uses the components as they are, with no wrapper: every gw- element is a native custom element.

Types

Load the React types once, and JSX checks every gw- element's properties and events:

env.d.ts
import '@greenwolf/ui/react'

Values and events

Example.tsx
<gw-switch
  checked={notify}
  ongw-change={(e) => setNotify(e.target.checked)}
/>