0.0.30 • Published 1 year ago

astro-headless-ui v0.0.30

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Astro Headless UI

npm npm

A headless component library for Astro

Note: This project is a work in progress, components with documentation are finished, if there are any changes they will be recorded in the wiki changelog

Documentation

Examples

Changelog

Submit an issue for bugs or suggestions

Style Components

HTML Element with an attached stylesheet

Components

Generates structured HTML

  • <Rating>: Display a ratio using elements, useful for star ratings on products, posts, etc
  • <Link>: Active link component, used in <Navigation> to generate link navigations
  • <Navigation>: Generate a list of links using props, useful for config files
  • <TableOfContents>: Generates a table of contents
  • <Breadcrumb>: Site/URL hierarchy navigation
  • <Pagination>: Page navigation for paginated routes
  • <Paginate>: SSR component version of Astro's SSG paginate()

Utility / Flow Components

  • <Wrap>: Conditionally wrap a component
  • <When>: acts like a conditional/ternary statement, mostly used for <Switch/>
  • <Switch>: Advanced conditional rendering, similar to SolidJS <Switch> with extra features using slots
  • <For>: .map() in component form with extra features, similar to SolidJS <For>

Client Components

HTML element with client side interactivity using <script>

  • <DarkThemeToggle>: Dark theme toggle button/script
  • <MultiThemeToggle>: Multi theme toggle button(s)/script
  • <CopyCode>: Attaches a button that copies code to all selected codeblocks

Client Scripts

Client side script that does not include HTML

  • <ScrollProperty>: Access scroll position of window or element inside CSS as custom properties
  • <MouseProperty>: Access mouse position of window or element inside CSS as custom properties

Utility

astro-headless-ui/util

  • hashId(): Create a hash from a string, for scoping CSS, HTML elements, and <script> tags
0.0.30

1 year ago

0.0.26

1 year ago

0.0.27

1 year ago

0.0.28

1 year ago

0.0.29

1 year ago

0.0.20

1 year ago

0.0.21

1 year ago

0.0.22

1 year ago

0.0.23

1 year ago

0.0.24

1 year ago

0.0.15

1 year ago

0.0.16

1 year ago

0.0.17

1 year ago

0.0.18

1 year ago

0.0.19

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago