# Interactions Utilities for controlling appearance, cursor styles, pointer events, user selection, and resizing. **Category:** Utilities **Storybook:** https://doc.ux4g.gov.in/web/?path=/story/ux4g-utilities-interactions--introduction ## Variants documented in Storybook - InteractionsShowcase: https://doc.ux4g.gov.in/web/?path=/story/ux4g-utilities-interactions--interactionsshowcase ## Framework setup ### HTML / CDN ```html ``` ### React ```bash npm install ux4g-web-components ``` ```jsx import 'ux4g-web-components/styles.css'; import 'ux4g-web-components/design-system'; ``` ### Angular Update `angular.json`: ```json { "styles": [ "node_modules/ux4g-web-components/styles/ux4g.css", "src/styles.css" ], "scripts": [ "node_modules/ux4g-web-components/dist/runtime/design-system.js" ] } ``` ## Code examples The snippets below are extracted from the Storybook canvas for Interactions. Each example shows the rendered HTML, the equivalent React JSX, and the Angular template markup. ### 1. Interactions Showcase — Cursors & Selection HTML: ```html
A comprehensive reference for browser interaction utilities, including cursors, selection, and resizing.
All available interaction utility classes categorized by function.
Format: ux4g-{interaction}-{value}
|
Pointer
ux4g-cursor-pointer
|
|
Not Allowed
ux4g-cursor-not-allowed
|
Format: ux4g-{interaction}-{value}
|
None
ux4g-select-none
|
|
Text
ux4g-select-text
|
|
All
ux4g-select-all
|
|
Auto
ux4g-select-auto
|
Format: ux4g-{interaction}-{value}
|
None
ux4g-pointer-events-none
|
|
Auto
ux4g-pointer-events-auto
|
Format: ux4g-{interaction}-{value}
|
None
ux4g-resize-none
|
|
Y
ux4g-resize-y
|
Format: ux4g-{interaction}-{value}
|
None
ux4g-appearance-none
|
A comprehensive reference for browser interaction utilities, including cursors, selection, and resizing.
All available interaction utility classes categorized by function.
Format:
ux4g-{interaction}-{value}
|
Pointer
ux4g-cursor-pointer
|
|
Not Allowed
ux4g-cursor-not-allowed
|
Format:
ux4g-{interaction}-{value}
|
None
ux4g-select-none
|
|
Text
ux4g-select-text
|
|
All
ux4g-select-all
|
|
Auto
ux4g-select-auto
|
Format:
ux4g-{interaction}-{value}
|
None
ux4g-pointer-events-none
|
|
Auto
ux4g-pointer-events-auto
|
Format:
ux4g-{interaction}-{value}
|
None
ux4g-resize-none
|
|
Y
ux4g-resize-y
|
Format:
ux4g-{interaction}-{value}
|
None
ux4g-appearance-none
|
A comprehensive reference for browser interaction utilities, including cursors, selection, and resizing.
All available interaction utility classes categorized by function.
Format: ux4g-{interaction}-{value}
|
Pointer
ux4g-cursor-pointer
|
|
Not Allowed
ux4g-cursor-not-allowed
|
Format: ux4g-{interaction}-{value}
|
None
ux4g-select-none
|
|
Text
ux4g-select-text
|
|
All
ux4g-select-all
|
|
Auto
ux4g-select-auto
|
Format: ux4g-{interaction}-{value}
|
None
ux4g-pointer-events-none
|
|
Auto
ux4g-pointer-events-auto
|
Format: ux4g-{interaction}-{value}
|
None
ux4g-resize-none
|
|
Y
ux4g-resize-y
|
Format: ux4g-{interaction}-{value}
|
None
ux4g-appearance-none
|