Skip to content

SharePoint UI

Native React controls that inherit the active SharePoint theme. Keep data access and permissions in your SPFx host.

In an SPFx project that uses React 18.3.1, install the package and import its stylesheet once:

Terminal window
npm install @spfx-fast/sharepoint-ui
import { Button, Field, Input, SharePointThemeProvider } from "@spfx-fast/sharepoint-ui/react";
import "@spfx-fast/sharepoint-ui/styles.css";
function RequestForm() {
return <SharePointThemeProvider>
<form>
<Field id="title" label="Title" required>
<Input name="title" required />
</Field>
<Button type="submit">Save</Button>
</form>
</SharePointThemeProvider>;
}

React is supplied by the SPFx host. The library renders controls and reports interaction; your web part handles SharePoint requests, permissions, validation, and persistence.

  • Components — find a control by task and open its interactive example.
  • Theme — inherit the tenant palette or customize sizing and spacing.
  • Agent guide — locate controls by role and verify the visible result.
  • Package README — install details and package entry points.