Cookest
@cookest/ui Components

Component Reference

Complete reference for all 18 Cookest UI components — React and Flutter side by side.

Component Reference

Every component is available in both React and Flutter with matching visual output and similar API patterns.

Button

Triggers actions. Supports four variants, three sizes, loading state, and icon slots.

Prop / ParamReactFlutterValues
Variantvariantvariantprimary, secondary, ghost, danger
Sizesizesizesm, md, lg
Loadingloadingloadingboolean / bool
Full widthfullWidthfullWidthboolean / bool
Leading iconiconLefticonLeftReactNode / Widget
Trailing iconiconRighticonRightReactNode / Widget

Input

Text field with label, validation, and icon support.

Prop / ParamReactFlutterValues
Labellabellabelstring / String
Placeholderplaceholderplaceholderstring / String
Errorerrorerrorstring / String
Helper texthelperTexthelperTextstring / String
SizeinputSizeinputSizesm, md, lg

Textarea

Multi-line text input mirroring the Input visual language.

Prop / ParamReactFlutterValues
Labellabellabelstring / String
Max lengthmaxLengthmaxLengthnumber / int
Show countshowCountshowCountboolean / bool
Auto resizeautoResizeboolean
Min rowsminRowsminLinesnumber / int
Max rowsmaxRowsmaxLinesnumber / int
SizeinputSizeinputSizesm, md, lg

Card

Container with optional header, body, and footer sections.

Prop / ParamReactFlutterValues
Variantvariantvariantdefault/standard, interactive, outlined
Paddingpaddingpaddingnone, sm, md, lg

Sub-components: CardHeader / CkCardHeader, CardBody / CkCardBody, CardFooter / CkCardFooter

Badge

Small label for statuses and tags.

Prop / ParamReactFlutterValues
Variantvariantvariantdefault/standard, success, warning, error, info
Sizesizesizesm, md, lg
Dotdotdotboolean / bool
Removableremovableremovableboolean / bool

Avatar

User image with initials fallback and group layout.

Prop / ParamReactFlutterValues
ImagesrcimageUrlURL string
Alt textaltaltstring / String
Sizesizesizexs, sm, md, lg, xl

Group: AvatarGroup / CkAvatarGroup with max prop for overflow count.

Dialog overlay with backdrop, transitions, and close behavior.

Prop / ParamReactFlutterValues
Titletitletitlestring / String
Sizesizesizesm, md, lg
Close on backdropcloseOnBackdropcloseOnBackdropboolean / bool
FooterfooterfooterReactNode / Widget

Tooltip

Hover/focus hint with directional positioning.

Prop / ParamReactFlutterValues
Contentcontentmessagestring / String
Positionpositionpositiontop, bottom, left, right
Delaydelay (ms)waitDurationnumber / Duration

Toggle

Switch control with label and description.

Prop / ParamReactFlutterValues
Checkedcheckedvalueboolean / bool
Labellabellabelstring / String
Descriptiondescriptiondescriptionstring / String
SizetoggleSizetoggleSizesm, md, lg

Select

Dropdown with search support.

Prop / ParamReactFlutterValues
OptionsoptionsoptionsSelectOption[] / List<CkSelectOption>
Valuevaluevaluestring / String
Searchablesearchablesearchableboolean / bool
Placeholderplaceholderplaceholderstring / String

Skeleton

Loading placeholders.

Prop / ParamReactFlutterValues
Variantvariantvarianttext, circular, rectangular
Lineslineslinesnumber / int

Presets: SkeletonCard / CkSkeletonCard — full card loading placeholder.

Alert

Glassmorphism notification banner with colored accent bar and ambient shadow.

Prop / ParamReactFlutterValues
Variantvariantvariantinfo, success, warning, error
Sizesizesm, md, lg
Titletitletitlestring / String
Dismissibledismissibledismissibleboolean / bool
IconiconiconReactNode / Widget
Visiblevisibleboolean

The React Alert uses backdrop-blur-sm, a 4px colored left accent bar, and shadow-{color}/15 ambient shadows for depth.

Divider

Visual separator.

Prop / ParamReactFlutterValues
Orientationorientationorientationhorizontal, vertical
Labellabellabelstring / String

Slider

Range input with track, custom thumb, and optional marks.

Prop / ParamReactFlutterValues
Valuevaluevaluenumber / double
Min / Maxmin, maxmin, maxnumber / double
Stepstepstepnumber / double
Colorcolorcolorprimary, blue, amber, rose
Sizesizesizesm, md, lg
Show valueshowValueshowValueboolean / bool
MarksmarksmarksSliderMark[] / List<CkSliderMark>
Disableddisableddisabledboolean / bool

Progress

Progress bar — determinate or indeterminate.

Prop / ParamReactFlutterValues
Valuevaluevaluenumber 0–100 / double (null = indeterminate)
Colorcolorcolorprimary, blue, amber, rose, green
Sizesizesizesm, md, lg
Stripedstripedstripedboolean / bool
Animatedanimatedanimatedboolean / bool
Show labelshowLabelshowLabelboolean / bool

Spinner

Animated loading ring with a breathing dual-arc design.

Prop / ParamReactFlutterValues
Colorcolorcolorprimary, blue, amber, rose, white, muted
Sizesizesizesm, md, lg, xl
Stroke widthstrokeWidthstrokeWidthnumber / double

Tabs

Tab navigation with animated indicator.

Prop / ParamReactFlutterValues
Variantvariantvariantunderline, pills, boxed
ItemsitemsitemsTabItem[] / List<CkTabItem>
Default tabdefaultTabinitialTabstring / String
Full widthfullWidthfullWidthboolean / bool
On changeonChangeonChanged(id: string) => void / ValueChanged<String>

TabItem / CkTabItem fields: id, label, icon?, badge?, content?

Accordion

Animated expandable panels.

Prop / ParamReactFlutterValues
Variantvariantvariantdefault, bordered, separated
Multiplemultiplemultipleboolean / bool
Default opendefaultOpendefaultOpenstring[] / Set<String>
ItemsitemsitemsAccordionItem[] / List<CkAccordionItem>

AccordionItem / CkAccordionItem fields: id, title, content, subtitle?, icon?, disabled?

On this page