Skip to content

Typescript, Tailwind and PrimeReactPTOptions #545

Closed Answered by Dalorzo
BottomleyIan asked this question in PrimeReact
Discussion options

You must be logged in to vote

@BottomleyIan are you looking for something like the code below, which is a Tailwind version for each component Typescript specific? :

import { classNames } from 'primereact/utils'
import { DataTableProps } from 'primereact/datatable'
import { ColumnProps } from 'primereact/column'

type DataTablePropsExt = DataTableProps<never> & { frozenRow: boolean }

interface TailwindDataTable {
  root: (props: { props: DataTableProps<never> }) => {
    className: string | undefined
  }

  loadingoverlay: {
    className: string | undefined
  }
  loadingicon: string
  wrapper: (props: { props: DataTableProps<never> }) => {
    className: string | undefined
  }
  header: (props: { props: DataTableProps<

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@BottomleyIan
Comment options

@Dalorzo
Comment options

Answer selected by melloware
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants