Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@elastic/react-search-ui-views

Package Overview
Dependencies
Maintainers
68
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elastic/react-search-ui-views

A collection of React UI components for building search experiences

  • 1.22.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
68
Created
Source

react-search-ui-views

Part of the Search UI project.

This is the view layer for react-search-ui.

This library provides view implementations for all of React Search UI's components along with corresponding CSS, and a few layout components.

The components provided here have no logic behind them, they are simple, stateless, view-only components.

Usage

import React from "react";
import {
  Layout,
  PagingInfo,
  Result,
  SearchBox
} from "@elastic/react-search-ui-views";
import "@elastic/react-search-ui-views/lib/styles/styles.css";

export default function App() {
  return (
    <div>
      <Layout
        header={<SearchBox value="test" />}
        bodyHeader={
          <div className="meta">
            <PagingInfo
              end={10}
              searchTerm={"test"}
              start={1}
              totalResults={100}
            />
          </div>
        }
        bodyContent={
          <div>
            <Result
              title="A Result"
              fields={{ description: "This is an example of a result" }}
            />
          </div>
        }
      />
    </div>
  );
}

Storybook

A visual component reference is available locally. It is built with Storybook, and can be run locally with the following command:

npm run storybook

FAQs

Package last updated on 28 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc