Components

Gravity comes packaged with a library of pre-built components that you can piece together to build your own user interface without any design skills.

The Gravity UI is currently being updated with Shadcn components. These are available as incremental component-by-component changes in the shadcn branch.

You can use them now, or keep using the main branch and update your components later when they are all available.

Check out the live demo to see the components in action.

Importing Components

You can import components from a global library file rather than having to remember where each component is stored.

import { Form, Card } from 'components/lib';

Each component has its section of the documentation where you will find code examples.

Last updated