0.11.5 • Published 10 months ago

@fikasio/react-ui-components v0.11.5

Weekly downloads
-
License
-
Repository
github
Last release
10 months ago

@fikasio/react-ui-components

Installation

Use npm:

npm install --save @fikasio/react-ui-components

or Yarn:

yarn add @fikasio/react-ui-components

Usage

Import components from the package in your React application, for example:

import { Footer } from '@fikasio/react-ui-components';

Components

AutosaveTextarea

Props

NameTypeRequiredDescription
classNamestringNoAdditional CSS class name for the textarea
defaultValuestringNoInitial text content of the textarea
namestringNoName attribute for the textarea input
onSavefunctionNoHandler called when content should be saved
placeholderstringNoPlaceholder text when textarea is empty
styleCSSPropertiesNoAdditional CSS styles for the textarea
valuestringNoControlled text content value

Button

Props

NameTypeRequiredDescription
classNamestringNoAdditional CSS class name for the button
disabledbooleanNoWhether the button is disabled
onClickfunctionNoHandler called when button is clicked
styleCSSPropertiesNoAdditional CSS styles for the button
typestringNoButton type ('button', 'submit', 'reset')

Checkbox

Props

NameTypeRequiredDescription
classNamestringNoAdditional CSS class name for the checkbox
defaultIsCheckedbooleanNoInitial checked state of the checkbox
isCheckedbooleanNoControlled checked state of the checkbox
namestringNoName attribute for the checkbox input
onClickfunctionNoClick handler function for the checkbox
styleCSSPropertiesNoAdditional CSS styles for the Checkbox

DatePicker

Props

NameTypeRequiredDescription
classNamestringNoAdditional CSS class name for the DatePicker
dateFormatstringNoFormat for date value (e.g. 'yyyy-MM-dd')
defaultValueDateNoInitial date value
displayFormatstringNoFormat for displaying the date
displayFunctionfunctionNoFunction for displaying the date
isOpenbooleanNoControls whether the picker is open
namestringNoName attribute for the input
onChangefunctionNoHandler called when date selection changes
onClosefunctionNoHandler called when picker closes
onOpenfunctionNoHandler called when picker opens
onRemoveValuefunctionNoHandler called when value is cleared
shouldCloseOnSelectbooleanNoWhether to close picker after selection
showRemoveValuebooleanNoShow option to clear the selected value
showTimeSelectbooleanNoEnable time selection
styleCSSPropertiesNoAdditional CSS styles for the DatePicker
timeCaptionstringNoLabel shown above time selector
timeFormatstringNoFormat for time value (e.g. 'HH:mm')
timeIntervalsnumberNoInterval in minutes between time options
valueDateNoControlled date value

Dot

Props

NameTypeRequiredDescription
classNamestringNoAdditional CSS class name for the Dot
colorstringNoColor of the dot (any valid CSS color)
sizenumberNoSize of the dot in pixels
styleCSSPropertiesNoAdditional CSS styles for the dot

Error

Props

NameTypeRequiredDescription
childrenstring/ReactNodeYesContent to display in the error message
classNamestringNoAdditional CSS class name for the Error
styleCSSPropertiesNoAdditional CSS styles for the Error

Footer

The Footer component provides a flexible layout with multiple sections for content placement. It can contain children elements in the center, left, right, and top positions.

Props

NameTypeRequiredDescription
childrenCenterReactNodeNoContent to be displayed in the center section
childrenLeftReactNodeNoContent to be displayed in the left section
childrenRightReactNodeNoContent to be displayed in the right section
childrenTopReactNodeNoContent to be displayed in the top section
classNamestringNoAdditional CSS class name for the Footer
styleCSSPropertiesNoAdditional CSS styles for the Footer

Input

Props

NameTypeRequiredDescription
classNamestringNoAdditional CSS class name for the Input
defaultValuestringNoInitial value for uncontrolled input
disabledbooleanNoWhether the input is disabled
namestringNoName attribute for the input
onChangefunctionNoHandler called when input value changes
placeholderstringNoPlaceholder text shown when input is empty
styleCSSPropertiesNoAdditional CSS styles for the Input
valuestringNoControlled input value

SearchBar

Props

NameTypeRequiredDescription
classNamestringNoAdditional CSS class name for the SearchBar
defaultValuestringNoInitial value for uncontrolled input
onChangefunctionNoHandler called when input value changes
onSelectfunctionNoHandler called when an option is selected from the menu
onSubmitfunctionNoHandler called when the Enter key is pressed
optionsarrayNoSuggestion options that will appear below
placeholderstringNoPlaceholder text when textarea is empty
styleCSSPropertiesNoAdditional CSS styles for the SearchBar
valuestringNoControlled input value

Select

Props

NameTypeRequiredDescription
classNamestringNoAdditional CSS class name for the Select
defaultValuestringNoInitial value for uncontrolled select
disabledbooleanNoWhether the select is disabled
namestringNoName attribute for the select
onChangefunctionNoHandler called when select value changes
optionsarrayYesArray of options to display in the select
styleCSSPropertiesNoAdditional CSS styles for the Select
valuestringNoControlled select value

Selector

Props

NameTypeRequiredDescription
classNamestringNoAdditional CSS class name for the Selector
ComponentComponentNoComponent that triggers the opening of the menu
defaultValuestringNoInitial value for uncontrolled select
namestringNoName attribute for the select
onChangefunctionNoHandler called when select value changes
optionsarrayNoArray of options to display in the select
styleCSSPropertiesNoAdditional CSS styles for the Selector
valuestringNoControlled select value

Success

Props

NameTypeRequiredDescription
classNamestringNoAdditional CSS class name for the Success
styleCSSPropertiesNoAdditional CSS styles for the Success

Warning

Props

NameTypeRequiredDescription
classNamestringNoAdditional CSS class name for the Warning
styleCSSPropertiesNoAdditional CSS styles for the Warning

Hooks

useTheme

TODO

Development

See DEVELOPMENT.md.

0.9.8

11 months ago

0.9.7

11 months ago

0.9.9

10 months ago

0.10.1

10 months ago

0.10.2

10 months ago

0.11.4

10 months ago

0.11.5

10 months ago

0.10.0

10 months ago

0.9.6

1 year ago

0.9.4

1 year ago

0.9.3

1 year ago

0.9.5

1 year ago

0.9.2

1 year ago

0.9.1

1 year ago

0.9.0

2 years ago

0.8.0

2 years ago

0.7.8

2 years ago

0.7.7

2 years ago

0.7.5

2 years ago

0.7.4

2 years ago

0.7.3

2 years ago

0.7.2

2 years ago

0.7.1

2 years ago

0.7.0

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.5.0

2 years ago

0.5.1

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago