InstallationNPMnpm install --save @junto-foundation/junto-elementsimport "@junto-foundation/junto-elements"import "@junto-foundation/junto-elements/dist/main.css"
Theming
Dark modeBase font size: 16pxHue: 610Saturation: 60%Border radius: 4px
Elements
ColorsPrimary
UI
Success
Danger
Warning
Black
White
Focus
Spacing
TypographyFont familyAvenirSizesFont size 100Font size 200Font size 300Font size 400Font size 500Font size 600Font size 700Font size 800Font size 900Font size 1000
Depth
Elements
Avatar
<j-avatar></j-avatar>
AttributeTypeValue
srcString
hashString
selectedBoolean
onlineBoolean
initialsString
iconString
sizestring xs sm lg xl
Badge
Badge
<j-badge>Badge</j-badge>
AttributeTypeValue
variantstring primary success danger warning
sizestring sm lg
Box
Box
<j-box>Box</j-box>
AttributeTypeValue
pstring 100 200 300 400 500 600 700 800 900
plstring 100 200 300 400 500 600 700 800 900
prstring 100 200 300 400 500 600 700 800 900
ptstring 100 200 300 400 500 600 700 800 900
pbstring 100 200 300 400 500 600 700 800 900
pxstring 100 200 300 400 500 600 700 800 900
pystring 100 200 300 400 500 600 700 800 900
mstring 100 200 300 400 500 600 700 800 900
mlstring 100 200 300 400 500 600 700 800 900
mrstring 100 200 300 400 500 600 700 800 900
mtstring 100 200 300 400 500 600 700 800 900
mbstring 100 200 300 400 500 600 700 800 900
mxstring 100 200 300 400 500 600 700 800 900
mystring 100 200 300 400 500 600 700 800 900
bgstring ui-100 ui-200 ui-300 ui-400 ui-500 ui-600 ui-700 ui-800 ui-900
Button
Button
<j-button>Button</j-button>
AttributeTypeValue
variantstring link primary subtle transparent
sizestring xs sm lg xl
disabledboolean
loadingboolean
squareboolean
fullboolean
circleboolean
Checkbox
Checkbox
<j-checkbox>Checkbox</j-checkbox>
AttributeTypeValue
checkedBoolean
fullBoolean
disabledBoolean
sizestring sm lg
valueString
Flex
Flex 1
Flex 2
Flex 3
<j-flex>
  <div>Flex 1</div>
  <div>Flex 2</div>
  <div>Flex 3</div>
</j-flex>
AttributeTypeValue
jstring center start end
astring center start end
wrapBoolean
gapstring 100 200 300 400 500 600 700 800 900
directionstring row row-reverse column column-reverse
Icon
<j-icon name="sun"></j-icon>
AttributeTypeValue
nameString
sizestring sm lg
colorString
svgstring
Input
<j-input></j-input>
AttributeTypeValue
valuestring
patternstring
labelstring
sizestring
placeholderstring
errorTextstring
helpTextstring
autocompleteboolean
autovalidateboolean
autofocusboolean
disabledboolean
fullboolean
errorboolean
requiredboolean
readonlyboolean
typestring
Menu
Menu itemMenu item
<j-menu>
  <j-menu-item>Menu item</j-menu-item>
  <j-menu-item>Menu item</j-menu-item>
</j-menu>
AttributeTypeValue
Menu Group
Menu itemMenu itemMenu item
<j-menu-group-item title="Hello">
  <j-menu-item>Menu item</j-menu-item>
  <j-menu-item>Menu item</j-menu-item>
  <j-menu-item>Menu item</j-menu-item>
</j-menu-group-item>
AttributeTypeValue
collapsibleBoolean
openBoolean
titleString
Menu item
Menu item
<j-menu-item>Menu item</j-menu-item>
AttributeTypeValue
selectedBoolean
activeBoolean
labelstring
valuestring
Modal
Toggle
Create somethingLorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries.
CancelCreate
<j-button>Toggle</j-button>
<j-modal>
  <header slot="header">
    <j-text variant="heading">Create something</j-text>
    <j-text variant="ingress">
      Lorem Ipsum is simply dummy text of the printing and typesetting industry.
      Lorem Ipsum has been the industry's standard dummy text ever since the
      1500s, when an unknown printer took a galley of type and scrambled it to
      make a type specimen book. It has survived not only five centuries.
    </j-text>
  </header>
  <div><j-input help-text="Here is some help text"></j-input></div>
  <footer slot="footer">
    <j-flex gap="400">
      <j-button size="lg">Cancel</j-button>
      <j-button variant="primary" size="lg">Create</j-button>
    </j-flex>
  </footer>
</j-modal>
AttributeTypeValue
sizestring xs sm lg xl
openBoolean
Popover
TriggerMenu itemMenu item
<j-popover placement="auto" event="click">
  <j-button slot="trigger">Trigger</j-button>
  <j-menu slot="content">
    <j-menu-item>Menu item</j-menu-item>
    <j-menu-item>Menu item</j-menu-item>
  </j-menu>
</j-popover>
AttributeTypeValue
openBoolean
placementstring auto auto-start auto-end top top-start top-end bottom bottom-start bottom-end right right-start right-end left left-start left-end
eventstring contextmenu mouseover click
Radio button
Radio button
<j-radio-button>Radio button</j-radio-button>
AttributeTypeValue
currentCheckedItemstring Element undefined
formElementstring HTMLInputElement null
checkedboolean
valuestring
namestring
sizestring sm md lg
fullboolean
disabledboolean
Select
Menu itemMenu item 2Menu item 3
<j-select inputvalue="">
  <j-menu>
    <j-menu-item value="1">Menu item</j-menu-item>
    <j-menu-item value="2">Menu item 2</j-menu-item>
    <j-menu-item value="3">Menu item 3</j-menu-item>
  </j-menu>
</j-select>
AttributeTypeValue
valueString
labelString
openBoolean
inputValueBoolean
selectedElementstring Element undefined
Spinner
<j-spinner></j-spinner>
AttributeTypeValue
sizestring sm lg
Tab Item
Tab item
<j-tab-item>Tab item</j-tab-item>
AttributeTypeValue
checkedBoolean
disabledBoolean
sizestring sm lg
variantstring button
labelstring
valuestring
Tabs
Tab 1Tab 2Tab 323
<j-tabs>
  <j-tab-item value="1" variant="button">Tab 1</j-tab-item>
  <j-tab-item value="2" variant="button">Tab 2</j-tab-item>
  <j-tab-item value="3" variant="button">Tab 323</j-tab-item>
</j-tabs>
AttributeTypeValue
valueString
verticalBoolean
fullBoolean
Text
The quick brown fox jumps over the lazy dog
<j-text variant="body">The quick brown fox jumps over the lazy dog</j-text>
AttributeTypeValue
sizestring 100 200 300 400 500 600 700 800 900 1000
variantstring heading-lg heading heading-sm subheading ingress body label footnote
tagstring h1 h2 h3 h4 h5 h6 p small b span div
nomarginBoolean
inlineBoolean
uppercaseBoolean
colorString
weightString
Timestamp
<j-timestamp value="01/01/1970" locales="en"></j-timestamp>
AttributeTypeValue
valueString
localesString
relativeBoolean
dateStylestring full long medium short
timeStylestring full long medium short
dayPeriodstring narrow short long
hourCyclestring h11 h12 h23 h24
timeZoneString
weekdaystring long short narrow
erastring long short narrow
yearstring numeric 2-digit
monthstring numeric 2-digit long short narrow
daystring numeric 2-digit
hourstring numeric 2-digit
minutestring numeric 2-digit
secondstring numeric 2-digit
Toast
Toast content
<j-toast autohide="5">Toast content</j-toast>
AttributeTypeValue
variantstring success danger warning
openBoolean
Toggle
Toggle
<j-toggle>Toggle</j-toggle>
AttributeTypeValue
checkedBoolean
fullBoolean
disabledBoolean
sizestring sm lg
valueString
Tooltip
Hover over me
<j-tooltip title="Hello" placement="auto">
  <j-button>Hover over me</j-button>
</j-tooltip>
AttributeTypeValue
openBoolean
titleString
placementstring auto auto-start auto-end top top-start top-end bottom bottom-start bottom-end right right-start right-end left left-start left-end