Skip to content
Discussion options

You must be logged in to vote

see the new "Active Elements Border Styling" example on https://matterviz.janosh.dev/periodic-table

<script>
  let active_elements_demo = $state([`H`, `C`, `N`, `O`, `Fe`, `Cu`, `Au`, `Ag`])
  let active_tile_border = $state({ width: `2px`, style: `solid`, color: `#ff0000` })
</script>

<PeriodicTable
  tile_props={{ show_name: window_width > 800 }}
  active_elements={active_elements_demo}
  style={`--elem-tile-active-border: ${active_tile_border.width} ${active_tile_border.style} ${active_tile_border.color}`}
  {onenter}
>
  {#snippet inset()}
    <TableInset
      style="display: flex; gap: 1em; place-content: center; flex-wrap: wrap; align-items: center"
    >
      <select bind:value={a…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Youjin1985
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants