### Install Styled-Components Dependency (Yarn) Source: https://coral.insea.io/developer/versions/v2.33.4/index Installs the styled-components peer dependency using Yarn. Coral relies on styled-components for its styling. ```bash yarn add styled-components ``` -------------------------------- ### Install Coral package Source: https://coral.insea.io/developer/versions/v2.43.1/index Installs the Coral package from npm or yarn. This is the primary step to integrate Coral into your project. ```bash yarn add @seaweb/coral # or `npm install @seaweb/coral` ``` -------------------------------- ### Install Styled Components Peer Dependency Source: https://coral.insea.io/developer/versions/v2.36.0/index Installs the styled-components library, which is a peer dependency for Coral. This must be installed separately. ```shell yarn add styled-components ``` -------------------------------- ### Install Coral Package using Yarn or npm Source: https://coral.insea.io/developer/versions/v2.56.1/index Instructions for installing the Coral package using either Yarn or npm. This step assumes the .npmrc file has already been configured. ```bash yarn add @seaweb/coral ``` ```bash npm install @seaweb/coral ``` -------------------------------- ### Install Coral Package using Yarn Source: https://coral.insea.io/developer/versions/v2.36.0/index Installs the Coral package using the Yarn package manager. This command adds the Coral library to your project's dependencies. ```shell yarn add @seaweb/coral ``` -------------------------------- ### Install Coral Package using NPM Source: https://coral.insea.io/developer/versions/v2.36.0/index Installs the Coral package using the NPM package manager. This command adds the Coral library to your project's dependencies. ```shell npm install @seaweb/coral ``` -------------------------------- ### Install Coral Package (Yarn/NPM) Source: https://coral.insea.io/developer/versions/v2.33.4/index Installs the Coral UI package using either Yarn or NPM. This command adds the Coral library to your project's dependencies. ```bash yarn add @seaweb/coral ``` ```bash npm install @seaweb/coral ``` -------------------------------- ### Configure NPM Registry Source: https://coral.insea.io/developer/versions/v2.33.4/index Sets the NPM registry to the private Seagroup registry. This is a prerequisite for installing the Coral package. Ensure this file is placed next to your package.json. ```text registry = https://npm.seagroup.com/ ``` -------------------------------- ### Configure npm Registry for Sea Coral Source: https://coral.insea.io/developer/versions/v2.56.1/index This snippet shows how to configure your npm registry to point to the Sea Coral registry. It requires creating a .npmrc file in your project's root directory. ```text registry = https://npm.sea.com/ ``` -------------------------------- ### Configure npm registry Source: https://coral.insea.io/developer/versions/v2.43.1/index Sets the npm registry to the Sea Coral private registry. This is a prerequisite for installing Coral packages. ```javascript registry = https://npm.sea.com/ ``` -------------------------------- ### Configure NPM Registry Source: https://coral.insea.io/developer/versions/v2.36.0/index Sets the NPM registry to use the Seagroup registry. This is a configuration step required before installing Coral packages. ```shell registry = "https://npm.seagroup.com/" ``` -------------------------------- ### Pusher Basic Usage Example Source: https://coral.insea.io/developer/Utilities/Pusher Demonstrates the fundamental implementation of the Pusher component. This example shows how to push a message using the `usePusherContext` hook, which should be called within the Pusher component itself. It assumes Pusher is placed at the top level of the application. ```jsx import { Pusher } from "@your-design-system/pusher"; import { usePusherContext } from "@your-design-system/pusher"; function App() { const push = usePusherContext(); return ( ); } ``` -------------------------------- ### RangePickerInputStart Component Props Source: https://coral.insea.io/developer/Input/RangePicker Defines the properties for the RangePickerInputStart component, allowing customization of an input element's start adornment. It supports disabled state and change events. ```typescript import { ChangeEvent } from 'react'; interface RangePickerInputStartProps { as?: any; disabled?: boolean; onChange?: (e: ChangeEvent) => void; value?: string; } ``` -------------------------------- ### Pusher Container Positions Example Source: https://coral.insea.io/developer/Utilities/Pusher Illustrates how to control the display position of Pusher messages. By default, messages appear at 'TopCenter'. This example shows how to override the default by passing a `position` option to the `push` function, selecting from predefined `PusherPositions`. ```jsx import { Pusher, PusherPositions } from "@your-design-system/pusher"; import { usePusherContext } from "@your-design-system/pusher"; function App() { const push = usePusherContext(); return ( ); } ``` -------------------------------- ### Lightbox API Source: https://coral.insea.io/developer/Pattern/Lightbox API documentation for the Lightbox component, detailing its available properties, types, default values, and descriptions. ```APIDOC ## Lightbox API ### Description API documentation for the Lightbox component, detailing its available properties, types, default values, and descriptions. ### Method N/A (Component API) ### Endpoint N/A (Component API) ### Parameters #### Props - **activeIndex** (number) - Optional - Controls which image is active. - **as** (any) - Optional - Tag or component to use. A simple tag (e.g., div, span) is recommended. - **collapse** (boolean) - Optional - - **flipKey** (string) - Optional - - **immediate** (boolean) - Optional - Disables the zooming animation when set to true. - **initialActiveIndex** (number) - Optional - - **onChange** ((activeIndex: number) => void) - Optional - Callback function when the active index changes. - **overlayElement** (ReactElement>) - Optional - Custom React element to render within the overlay. Defaults to ``. - **theme** (Theme) - Optional - Theme object for styling the Lightbox component. ### Request Example N/A (Component API) ### Response #### Success Response (200) N/A (Component API) #### Response Example N/A (Component API) ``` -------------------------------- ### Basic Select Component Usage Source: https://coral.insea.io/developer/Input/Select Demonstrates the fundamental usage of the Select component, likely for a simple dropdown selection. No specific props are shown, indicating default configuration. ```jsx