Introduction
Casper UI is the design system and component library used to build Caspeco applications.
Casper UI is the design system and React component library used to build Caspeco applications. It gives designers and developers a shared set of foundations, guidelines and components, so that Caspeco products look, feel and behave consistently.
Get started
Section titled “Get started”DesignFigma libraries, tokens and handing off designs.
DevelopInstall the component library and set up your application.
Explore
Section titled “Explore”Design SystemPrinciples, foundations, content guidelines and patterns.
ContributingPropose changes and contribute to Casper UI.
Components
Section titled “Components”All components in the library. Each page covers usage, examples and a link to the API reference.
AccordionA component used for hiding and showing UI content for users.
AlertAlerts are used to communicate a state that affects a system, feature or page.
BadgeBadges are used to highlight an item's status for quick recognition.
BoxAbstract component useful for creating layout or composing custom components.
BreadcrumbsBreadcrumbs component to display the current path and add an easy way to go back to a previous page.
ButtonUsed to trigger an action or event, such as submitting a form, opening a Dialog, canceling an action, or performing a delete operation.
CheckboxUsed in forms when a user needs to select multiple values from several options.
CheckboxGroupA CheckboxGroup component.
CollapsibleA component that expands and collapses long content areas.
ComboboxAn input that behaves similarly to a select, with the addition of a free text input to filter options.
DatePickerA DatePicker component.
DividerDisplays a thin horizontal or vertical line, and renders a hr tag.
DrawerAn overlay that slides in from a side of the viewport and behaves either as a dialog or inline element.
FieldsetFieldset groups related form controls together and provides context to its children and input elements.
FlexA Flex component.
FormControlForm Control provides form field context to its children and input elements.
GridGrid is a layout for managing grid layouts
HeadingUsed to render semantic HTML heading elements.
HighlightDisplays highlighted text based on a query.
IconA component to render icons.
IconButtonA round button with only an icon within.
ImageA Image component.
InputComponent that is used to get user input in a text field.
LinkAccessible element used for navigation.
ListA List component.
MenuAn accessible dropdown menu for the common dropdown menu button design pattern. Menu uses roving tabIndex for focus management.
MessageA Message component.
ModalA dialog that focuses the user's attention exclusively on an information via a window that is overlaid on primary content.
NavigationListList of interactive navigation menu items, either as custom links or buttons.
PaginatorUsed to break up large datasets into smaller, more manageable chunks.
PhoneInputComponent that is used to get and validate phone number input from users with country selection.
QuantityButtonA quantity field with a decrease and increase button on either side.
RadioRadio Input, used when only one choice may be selected in a series of options.
RadioCardCard-style radio input, used when only one choice may be selected in a series of options.
RichTextEditorA rich text editor with a formatting toolbar built on TipTap and Chakra UI.
SegmentedControlA group of buttons used for switching between a set of equal options or views.
SelectInput element displaying a list of predefined options in a dropdown, allowing selection of one.
SkeletonA Skeleton component.
SpinnerIndicates that an action is in progress and that the user should wait.
StackLayout component used to group elements together and apply a space between them.
StepperA representation of a progress through a series of steps.
SwitchA Switch component.
TableUsed to display and manage data in a table.
TabsMultipart component providing a way of navigating between multiple panels and their contents.
TagUsed to label, categorize, or organize items using keywords that describe them.
TextUsed to render texts or paragraphs.
TextareaInput element for multi-line text.
ToasterUsed to give feedback to users after an action has taken place.
ToggleButtonA button with two states, pressed or not pressed. Used to indicate a value that can be toggled on or off, while also having the behaviour of a button.
TooltipA Tooltip component.