https://github.com/odigos-io/ui-utils
Utils library for Odigos User Interfaces
https://github.com/odigos-io/ui-utils
react reactjs
Last synced: 2 months ago
JSON representation
Utils library for Odigos User Interfaces
- Host: GitHub
- URL: https://github.com/odigos-io/ui-utils
- Owner: odigos-io
- Created: 2025-02-03T08:01:08.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-03-09T10:14:33.000Z (3 months ago)
- Last Synced: 2025-03-20T14:56:17.421Z (3 months ago)
- Topics: react, reactjs
- Language: TypeScript
- Homepage: https://npmjs.com/package/@odigos/ui-utils
- Size: 503 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Odigos UI Utils
This library contains the utils for all Odigos UI libraries ([ui-icons](https://github.com/odigos-io/ui-icons), [ui-components](https://github.com/odigos-io/ui-components), [ui-containers](https://github.com/odigos-io/ui-containers)).
## Installation
Using **npm**:
```shell
npm i @odigos/ui-utils
```Using **yarn**:
```shell
yarn add @odigos/ui-utils
```## Usage
Import a util, and call it with it's params:
```tsx
import { useKeyDown } from '@odigos/ui-utils'const App = () => {
useKeyDown(
{
key: 'Enter',
active: true,
},
() => {
console.log('key pressed')
}
)return
hi mom
}
```