Skip to content

UI: native

View as Markdown

@pithyx/ui/native: the class names of the components for native HTML elements, without React Aria. Import the token file once (@pithyx/ui/tokens.css) and wrap the app in UiProvider; see @pithyx/ui.

Generated from the TSDoc comments of @pithyx/ui 1.0.0-rc.9 at build time; the text below the headings is the comment in the source.

const buttonStyles: object = button;

The class names of Button: button, one per variant, small and spinner for a pending state.

readonly button: string;
readonly danger: string;
readonly icon: string;
readonly primary: string;
readonly quiet: string;
readonly secondary: string;
readonly small: string;
readonly spinner: string;

const controlStyles: object = controls;

The class names of Checkbox, Switch, ProgressBar and Badge; a checkbox is checkbox with a box.

readonly accent: string;
readonly badge: string;
readonly bar: string;
readonly box: string;
readonly checkbox: string;
readonly danger: string;
readonly field: string;
readonly fill: string;
readonly highlight: string;
readonly neutral: string;
readonly progress: string;
readonly progressLabel: string;
readonly progressValue: string;
readonly switch: string;
readonly thumb: string;
readonly track: string;

const textFieldStyles: object = textField;

The class names of TextField, PasswordField, OtpField and SearchField.

readonly clear: string;
readonly description: string;
readonly error: string;
readonly field: string;
readonly frame: string;
readonly input: string;
readonly label: string;
readonly otp: string;
readonly reveal: string;
readonly search: string;
readonly searchIcon: string;
readonly searchInput: string;

Re-exports cx


Re-exports uiTexts


Re-exports UiTexts