Marigold
Getting StartedFoundationsComponentsPatternsReleases
Discover new Tutorials!

Components

Overview

Application

MarigoldProvider
RouterProvider

Layout

Aside
Aspect
Breakout
Center
Columns
Container
Grid
Inline
updated
Inset
Scrollable
Split
Stack
Tiles

Form

Autocomplete
updated
Button
updated
Calendar
Checkbox
updated
ComboBox
updated
DateField
DatePicker
Form
Multiselect
NumberField
Radio
updated
SearchField
Select
Slider
updated
Switch
TextArea
updated
TextField
TimeField

Collection

SelectList
Table
updated
Tag

Navigation

Accordion
Breadcrumbs
beta
Pagination
Tabs

Overlay

ContextualHelp
Dialog
Menu
Toast
beta
Tooltip

Content

Badge
Card
Divider
Headline
Icon
Link
List
SectionMessage
SVG
Text
VisuallyHidden
XLoader

Formatters

DateFormat
updated
NumericFormat
updated

Hooks and Utils

cn
cva
extendTheme
useAsyncListData
useListData
useResponsiveValue
useTheme

cva

Helper to write styles for an element.

To write our styles for a component we use cva. This library comes with a great utility function which we use to write styles for our components. If you want to style your own component you can use this function which we updated with some additional style checks, for example it resolves conflicts in class names with tailwind-merge. With this the class names will be merged together.

Import

import { cva } from '@marigold/system';

Examples

Style an element

This example shows how to use the function inside a div element. You can add some variants and sizes if you want.

Preview
Code
this is some text
Last update: April 30, 2024
Build with 🥵, 🧡 and
v15.0.0