### Install and Run Blueprint Development Server Source: https://github.com/palantir/blueprint/blob/develop/packages/docs-app/README.md Follow these steps to install dependencies, start the development server, and access the documentation locally. You can change the default port by setting the PORT environment variable. ```bash pnpm install ``` ```bash pnpm dev ``` -------------------------------- ### Install Dependencies and Build Project Source: https://github.com/palantir/blueprint/blob/develop/CONTRIBUTING.md Clone the repository, install dependencies using pnpm, and compile the project. Ensure Node.js and pnpm are installed and an SSH key is set up with GitHub. ```shell git clone git@github.com:/blueprint.git cd blueprint pnpm install pnpm compile pnpm dist ``` -------------------------------- ### Register Package Examples in Docs App Source: https://github.com/palantir/blueprint/wiki/Creating-a-new-package Updates the React examples registry in the documentation application to include examples from the new package. This makes the examples discoverable and renderable. ```diff import * as SelectExamples from "../examples/select-examples"; +import * as TimeTravelExamples from "../examples/time-travel-examples"; import * as TableExamples from "../examples/table-examples"; ... ...getPackageExamples("select", SelectExamples as any); +...getPackageExamples("time-travel", TimeTravelExamples as any); ...getPackageExamples("table", TableExamples as any); ``` -------------------------------- ### Install Blueprint Docs Theme Source: https://github.com/palantir/blueprint/blob/develop/packages/docs-theme/README.md Install the @blueprintjs/docs-theme package using npm. ```sh npm install --save @blueprintjs/docs-theme ``` -------------------------------- ### Install @blueprintjs/table Source: https://github.com/palantir/blueprint/blob/develop/packages/table/src/docs/table.mdx Install the table package using npm. ```sh npm install --save @blueprintjs/table ``` -------------------------------- ### Install Blueprint Stylelint Plugin Source: https://github.com/palantir/blueprint/blob/develop/packages/stylelint-plugin/README.md Install the stylelint plugin as a development dependency using pnpm. ```sh pnpm add --save-dev @blueprintjs/stylelint-plugin ``` -------------------------------- ### Install @blueprintjs/eslint-config Source: https://github.com/palantir/blueprint/blob/develop/packages/eslint-config/README.md Install the ESLint configuration package as a development dependency. ```sh pnpm add --save-dev @blueprintjs/eslint-config ``` -------------------------------- ### Install @blueprintjs/core Source: https://github.com/palantir/blueprint/blob/develop/packages/docs-app/src/blueprint.mdx Install the primary Blueprint UI components package along with React and ReactDOM using pnpm. ```sh pnpm add @blueprintjs/core react react-dom ``` -------------------------------- ### Install TSLint Configuration Source: https://github.com/palantir/blueprint/blob/develop/packages/tslint-config/README.md Install the TSLint configuration package and TSLint itself as development dependencies. ```sh pnpm add --save-dev @blueprintjs/tslint-config tslint ``` -------------------------------- ### Install Blueprint ESLint Plugin Source: https://github.com/palantir/blueprint/blob/develop/packages/eslint-plugin/README.md Install the ESLint plugin as a development dependency using pnpm. ```sh pnpm add --save-dev @blueprintjs/eslint-plugin ``` -------------------------------- ### Install Blueprint Labs Source: https://github.com/palantir/blueprint/blob/develop/packages/labs/README.md Install the Blueprint Labs package using npm. This package contains experimental components. ```sh npm install --save @blueprintjs/labs ``` -------------------------------- ### Install Blueprint Core Components Source: https://github.com/palantir/blueprint/blob/develop/packages/core/README.md Use npm to install the core Blueprint package. This command adds the necessary CSS and React code to your project. ```sh npm install --save @blueprintjs/core ``` -------------------------------- ### Install Blueprint v6.16.0+ for React 19 Source: https://github.com/palantir/blueprint/wiki/React-19-Support Use this command to install Blueprint v6.16.0 or newer, which includes React 19 in its peer dependency ranges. This is the recommended approach for a clean install experience. ```sh npm install @blueprintjs/core@^6.16.0 ``` -------------------------------- ### Run Blueprint Landing Page Source: https://github.com/palantir/blueprint/blob/develop/packages/landing-app/README.md Follow these steps to start the Blueprint landing page on your local machine. Ensure you are in the root of the repository before executing. ```bash npm run bootstrap npm start http://localhost:8080 ``` -------------------------------- ### Popover Dismiss Example Source: https://github.com/palantir/blueprint/blob/develop/packages/core/src/components/popover/popover.mdx A practical example showcasing the dismissal behavior of Popovers, likely demonstrating the use of `Classes.POPOVER_DISMISS` and related functionalities. ```tsx import { Popover, Classes, Button, Menu, MenuItem } from "@blueprintjs/core"; function PopoverDismissExample() { const menu = ( ); return ( } /> ); } ``` -------------------------------- ### Icon HTML Markup Example Source: https://github.com/palantir/blueprint/blob/develop/packages/core/src/components/icon/icon.mdx This is an example of the HTML markup rendered by the Icon component with a custom size. ```xml ``` -------------------------------- ### Install Blueprint Icons Source: https://github.com/palantir/blueprint/blob/develop/packages/icons/README.md Install the Blueprint Icons package using npm. This command adds the necessary dependencies to your project. ```sh npm install --save @blueprintjs/icons ``` -------------------------------- ### Install @blueprintjs/datetime Source: https://github.com/palantir/blueprint/blob/develop/packages/datetime/README.md Install the datetime package using npm. This package is a dependency for using the date and time components. ```sh npm install --save @blueprintjs/datetime ``` -------------------------------- ### Install Blueprint Colors Package Source: https://github.com/palantir/blueprint/blob/develop/packages/colors/README.md Install the @blueprintjs/colors package using npm. This command adds the package as a dependency to your project. ```sh npm install --save @blueprintjs/colors ``` -------------------------------- ### Lerna Interactive Version Prompt Example Source: https://github.com/palantir/blueprint/wiki/Release-process An example of the interactive prompt Lerna displays when prompting for new version numbers. Use the changelog to determine appropriate 'Patch', 'Minor', or 'Major' releases. ```sh lerna notice cli v6.5.1 lerna info versioning independent lerna info Looking for changed packages since @blueprintjs/core@5.1.4 ? Select a new version for @blueprintjs/core (currently 5.1.4) (Use arrow keys) Patch (5.1.5) Minor (5.2.0) Major (6.0.0) Prepatch (5.1.5-alpha.0) Preminor (5.2.0-alpha.0) Premajor (6.0.0-alpha.0) Custom Prerelease Custom Version ``` -------------------------------- ### Install Blueprint Select Package Source: https://github.com/palantir/blueprint/blob/develop/packages/select/README.md Install the Blueprint Select package using npm. This command adds the necessary components for item selection UIs to your project. ```sh npm install --save @blueprintjs/select ``` -------------------------------- ### Install Latest Blueprint 3.0.0 Packages Source: https://github.com/palantir/blueprint/wiki/Blueprint-3.0 Use this command to install the latest version of Blueprint core and icons packages. Ensure you include other Blueprint packages as needed. ```sh yarn upgrade @blueprintjs/core@latest @blueprintjs/icons@latest ... ``` -------------------------------- ### Install TypeScript Typings Source: https://github.com/palantir/blueprint/blob/develop/packages/docs-app/src/getting-started.mdx Install the necessary TypeScript typings for React and ReactDOM, which are required for all @blueprintjs packages when using TypeScript. ```sh # required for all @blueprintjs packages: npm install --save @types/react @types/react-dom ``` -------------------------------- ### Synchronous Toast Display Example Source: https://github.com/palantir/blueprint/blob/develop/packages/core/src/components/toast/toast.mdx Demonstrates how to handle the promise returned by `OverlayToaster.create()` in a synchronous function using `.then()` handlers. ```typescript function synchronousFn() { const toasterPromise = OverlayToaster.create({}); toasterPromise.then(toaster => toaster.show({ message: "Toast!" })); } ``` -------------------------------- ### Basic Popover Example Source: https://github.com/palantir/blueprint/blob/develop/packages/core/src/components/popover/popover.mdx Demonstrates a basic Popover with a click interaction, custom content, and a primary button as the target. The `Classes.POPOVER_CONTENT_SIZING` class is applied to the popover for consistent padding. ```tsx import { Button, Classes, Popover } from "@blueprintjs/core"; export class PopoverExample extends React.PureComponent { public render() { // popover content gets no padding by default; add the "@ns-popover-content-sizing" // class to the popover to set nice padding between its border and content. return (
Popover title

...