Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@freesail/standard-catalog

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@freesail/standard-catalog

Standard UI Component Catalog for Freesail A2UI SDK - provides a collection of commonly used UI components to build agent-driven UIs.

latest
npmnpm
Version
0.9.2
Version published
Maintainers
1
Created
Source

@freesail/standard-catalog

Freesail Standard UI Component Catalog — a collection of ready-to-use components and functions for building agent-driven UIs with Freesail.

Components

ComponentDescription
TextRenders text content with variant support (h1–h5, caption, body)
IconDisplays a Material Design icon (font auto-injected)
RowArranges children horizontally
ColumnArranges children vertically
CardStyled container with border and optional shadow
ModalOverlay dialog that covers the screen
ButtonClickable button that triggers an action
TextFieldSingle or multi-line text input
ChoicePickerSingleSelectSelects exactly one option from a list
ChoicePickerMultiSelectSelects one or more options from a list
DateInputDate picker (ISO 8601 date strings, no time component)
TimeInputStandalone hour/minute time picker
DropdownDropdown select for a single option
CheckBoxCheckbox toggle for boolean values
SliderNumeric range slider; supports single thumb or range
SpacerFlexible spacing element
DividerHorizontal separator line
ImageDisplays an image
VideoPlays a video
AudioPlayerAudio player supporting direct URLs and embedded third-party players
ListScrollable list with vertical or horizontal layout
TabGroupTabbed container that shows one Tab at a time
TabA single tab within a TabGroup
FluidGridResponsive auto-fill grid that flows children into equal-width columns
TabularGridFixed-column grid with optional header row and alternating row styles
BarChartBar chart from an array of data points
LineChartLine chart from an array of data points
PieChartPie or donut chart from an array of segments
SparklineCompact inline sparkline from an array of numbers
StatCardKPI card with a large value, label, and optional trend indicator

Functions

Validation

FunctionDescription
requiredReturns true if the value is not null, undefined, or empty
regexReturns true if the value matches a regular expression
checkLengthReturns true if the string or array length satisfies min/max constraints
numericReturns true if the numeric value satisfies min/max/step constraints
emailReturns true if the value is a valid email address

Formatting

FunctionDescription
formatStringString interpolation with ${path} expressions and nested function calls
formatNumberFormats a number with grouping and decimal precision
formatCurrencyFormats a number as a currency string
formatDateFormats a date string, ISO timestamp, or Unix timestamp (ms) using a pattern
pluralizeReturns a localized string based on the CLDR plural category of a count
nowReturns the current date and time as an ISO 8601 string

Logic & Comparison

FunctionDescription
andReturns true if all arguments are truthy
orReturns true if any argument is truthy
isEmptyReturns true if the value is null, undefined, empty string, empty array, or empty object
eqReturns true if two values are strictly equal
neqReturns true if two values are not equal
gtReturns true if the first value is greater than the second
gteReturns true if the first value is greater than or equal to the second
ltReturns true if the first value is less than the second
lteReturns true if the first value is less than or equal to the second

Utilities

FunctionDescription
getLengthReturns the character count, array length, or string length of a number/date
openUrlOpens a URL in the browser
showShows a component by its ID
hideHides a component by its ID

Setup

Icon component

The Icon component uses Material Symbols Outlined rendered via CSS font ligatures. The font stylesheet is automatically injected into <head> on first render — no manual setup required.

Icon names are passed in camelCase and converted to the correct ligature name automatically:

{ "component": "Icon", "id": "icon1", "name": "home" }
{ "component": "Icon", "id": "icon2", "name": "arrowBack", "size": "32px" }
{ "component": "Icon", "id": "icon3", "name": "favorite", "color": "error" }

Markdown component — bundled dependency

The Markdown component uses react-markdown, which is bundled as a dependency of this package. No additional setup is required.

License

MIT — see LICENSE

Third-party attributions — see 3rdpartylicenses.txt

Keywords

a2ui

FAQs

Package last updated on 03 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts