APIComponents

Components

Next-Admin exports a set of UI components which are, for most of those, extending Radix UI primitives. These components are available through the @premieroctet/next-admin/components import.

Button

The button element accepts all the base button tag attributes and extends it with the following:

NameDescriptionDefault Value
variantThe button variant. Possible values are `default`, `destructive`, `destructiveOutline`, `outline`, `secondary`, `ghost`, `link`default
sizeThe button size. Possible values are `default`, `sm`, `lg`-
iconA boolean indicating the presence of an icon-
asChildA boolean to render a Radix Slot component-
loadingA boolean to render a spinner-

BaseInput

The input component rendered in the Form component. It accepts all the base input tag attributes.

Switch

The Radix Switch component.

Select

The Radix Select component.

Checkbox

An implementation of the Radix Checkbox component. It accepts all the props of the Checkbox Root component, and the following:

NameDescription
indeterminateA boolean to render the checkbox in an indeterminate state

The Radix Dropdown component.

Table

The Radix Table component.

Tooltip

The Radix Tooltip component.