Open History to see the last commit
1import clsx from 'clsx'
2import { createStyles } from '../styles/use-styles'
3import type { JSX } from 'solid-js/jsx-runtime'
4β
5export const Section = ({
6 children,
7 ...rest
8}: JSX.IntrinsicElements['section']) => {
9 const styles = createStyles()
10 return (
11 <section class={clsx(styles().section.main, rest.class)} {...rest}>
12 {children}
13 </section>
14 )
15}
16β
17export const SectionTitle = ({
18 children,
19 ...rest
20}: JSX.IntrinsicElements['h3']) => {
21 const styles = createStyles()
22 return (
23 <h3 class={clsx(styles().section.title, rest.class)} {...rest}>
24 {children}
25 </h3>
26 )
27}
28β
29export const SectionDescription = ({
30 children,
31 ...rest
32}: JSX.IntrinsicElements['p']) => {
33 const styles = createStyles()
34 return (
35 <p class={clsx(styles().section.description, rest.class)} {...rest}>
36 {children}
37 </p>
38 )
39}
40β
41export const SectionIcon = ({
42 children,
43 ...rest
44}: JSX.IntrinsicElements['span']) => {
45 const styles = createStyles()
46 return (
47 <span class={clsx(styles().section.icon, rest.class)} {...rest}>
48 {children}
49 </span>
50 )
51}