Skip to main content

Common Type Definitions

BaseUIProps

The philosophy around this BaseUIProps is that almost all of the components extends this interface.

  • status - To change the color appearance of the component
    • primary
    • accent
    • success
    • info
    • warning
    • error
  • size - To control the size of the component
    • small
    • medium
    • large
  • mode - You will also see this prop in a significant amount of component, and this is based on the component modes, where you will be able to control the appearance & look/feel of the component
PropData TypeDefault ValueDescription
Extends------
statusBlossomStatusprimaryStatus of the component to apply color variants'primary' | 'accent' | 'success' | 'info' | 'warning' | 'error'
sizeBlossomSizemediumSize of the component'small' | 'medium' | 'large'

BaseBooleanFieldProps

PropData TypeDefault ValueDescription
ExtendsBaseUIProps--Inherits properties from BaseUIProps
position"left" | "right"rightControl the position of the field
adjacentbooleantrueSet it to false to position them apart i.e. space-between
defaultValuebooleanfalseDefault value for the field
disabledboolean--Set to true for disabled field
colorColorValue--Set custom color
labelstring--Label text above the input
captionstring--Caption text below the text input
errorstring--Error text in error `status` below caption text
containerStyleStyleProp<ViewStyle>--Container view style
textFieldsContainerStyleStyleProp<ViewStyle>--Text field Container view styleContainer for label, caption & error i.e. the right/left section opposite to the boolean field
labelStyleStyleProp<TextStyle>--Label text style
captionStyleStyleProp<TextStyle>--Caption text style
errorStyleStyleProp<TextStyle>--Error text style
statusBlossomStatusprimaryStatus of the component to apply color variants'primary' | 'accent' | 'success' | 'info' | 'warning' | 'error'
sizeBlossomSizemediumSize of the component'small' | 'medium' | 'large'
childrenReactNode--Children

BlossomUIOptions

PropData TypeDefault ValueDescription
Extends------
borderRadiusnumber--Control the border radius for all components like input, button etc.
fontFamilystring--Global font family applied to all text elements
typographyTypographyValuesb2Modify the font size/weight values using thish1-h6 are used for headings s1-s3 are used for subheadings b1-b3 are used for body text l1-l3 are used for labels c1-c3 are used for captions